> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/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=="


## Related topics

- [SuperOffice.WebApi.Authorization.AuthorizationTicket](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationTicket.md)
- [SuperOffice.WebApi.Authorization.AuthorizationImplicit](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationImplicit.md)
- [SuperOffice.WebApi.Authorization.AuthorizationUsernamePassword](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationUsernamePassword.md)
- [SuperOffice.WebApi.Authorization.AuthorizationAccessToken](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.AuthorizationAccessToken.md)
- [SuperOffice.WebApi.Authorization](/en/api/reference/webapi/SuperOffice.WebApi.Authorization.md)
- [SuperOffice.WebApi.AuthorizationUserToken](/en/api/reference/webapi/SuperOffice.WebApi.AuthorizationUserToken.md)
