Skip to main content

Class AuthorizationUsernamePassword

Namespace: SuperOffice.WebApi.Authorization
Assembly: SuperOffice.WebApi.Authorization.dll
Username and password IAuthorization using Basic scheme.

Inheritance

objectAuthorizationUsernamePassword

Implements

IAuthorization

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

AuthorizationUsernamePassword(string, string)

UserNamePasswordAuthorization Constructor

Parameters

userName string Users name. password string Users password.

Properties

RefreshAuthorizationAsync

Try to refresh this IAuthorization instance.

Property Value

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

Methods

GetAuthorization()

Gets a tuple that represents authorization scheme and parameter for a base64 encoded username:password.

Returns

AuthenticationHeaderValue Gets a Tuple (string,string) where scheme is Basic and parameter is base64 encoded username:password.