Skip to main content

Class AuthorizationUsernamePassword

Namespace: SuperOffice.WebApi.Authorization
Assembly: SuperOffice.WebApi.Authorization.dll
Username and password <xref href=“SuperOffice.WebApi.Authorization.IAuthorization” data-throw-if-not-resolved=“false”></xref> 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 <xref href=“SuperOffice.WebApi.Authorization.IAuthorization” data-throw-if-not-resolved=“false”></xref> 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 <xref href=“System.Tuple%602” data-throw-if-not-resolved=“false”></xref> (string,string) where scheme is Basic and parameter is base64 encoded username:password.