> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Authorization.IAuthorization

# \<a id="SuperOffice\_WebApi\_Authorization\_IAuthorization">\</a> Interface IAuthorization

Namespace: [SuperOffice.WebApi.Authorization](SuperOffice.WebApi.Authorization.md)\
Assembly: SuperOffice.WebApi.Authorization.dll

Defines a method to construct the Authorization header scheme and parameter for Http Requests.
\<xref href="SuperOffice.WebApi.Authorization.AuthorizationUsernamePassword" data-throw-if-not-resolved="false">\</xref>,
\<xref href="SuperOffice.WebApi.Authorization.AuthorizationTicket" data-throw-if-not-resolved="false">\</xref>, \<xref href="SuperOffice.WebApi.Authorization.AuthorizationImplicit" data-throw-if-not-resolved="false">\</xref>

```csharp theme={null}
public interface IAuthorization
```

## Properties

### \<a id="SuperOffice\_WebApi\_Authorization\_IAuthorization\_RefreshAuthorizationAsync">\</a> RefreshAuthorizationAsync

Delegate called when authentication fails. Use to acquire and return a new authentication header value.

```csharp theme={null}
Func<ReAuthorizationArgs, Task<IAuthorization>> RefreshAuthorizationAsync { get; set; }
```

#### Property Value

[Func](https://learn.microsoft.com/dotnet/api/system.func-2)\<[ReAuthorizationArgs](SuperOffice.WebApi.Authorization.ReAuthorizationArgs.md), [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[IAuthorization](SuperOffice.WebApi.Authorization.IAuthorization.md)\&gt;\&gt;

## Methods

### \<a id="SuperOffice\_WebApi\_Authorization\_IAuthorization\_GetAuthorization">\</a> GetAuthorization()

Return the HTTP Authorization scheme and parameters as an AuthenticationHeaderValue.

```csharp theme={null}
AuthenticationHeaderValue GetAuthorization()
```

#### Returns

[AuthenticationHeaderValue](https://learn.microsoft.com/dotnet/api/system.net.http.headers.authenticationheadervalue)

AuthenticationHeaderValue. Containing e.g. "Basic", "Base64encoded=="
