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

object ← AuthorizationUsernamePassword

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.