Skip to main content

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

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

GetAuthorization()

Return the HTTP Authorization scheme and parameters as an AuthenticationHeaderValue.

Returns

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