Skip to main content

<a id=“SuperOffice_WebApi_Authorization_IAuthorization”></a> Interface IAuthorization

Namespace: SuperOffice.WebApi.Authorization
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>

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.

Property Value

Func<ReAuthorizationArgs, Task<IAuthorization&gt;&gt;

Methods

<a id=“SuperOffice_WebApi_Authorization_IAuthorization_GetAuthorization”></a> GetAuthorization()

Return the HTTP Authorization scheme and parameters as an AuthenticationHeaderValue.

Returns

AuthenticationHeaderValue AuthenticationHeaderValue. Containing e.g. “Basic”, “Base64encoded==”