Skip to main content

<a id=“SuperOffice_WebApi_Authorization_AuthorizationUsernamePassword”></a> 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

<a id=“SuperOffice_WebApi_Authorization_AuthorizationUsernamePassword__ctor_System_String_System_String_”></a> AuthorizationUsernamePassword(string, string)

UserNamePasswordAuthorization Constructor

Parameters

userName string Users name. password string Users password.

Properties

<a id=“SuperOffice_WebApi_Authorization_AuthorizationUsernamePassword_RefreshAuthorizationAsync”></a> 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

<a id=“SuperOffice_WebApi_Authorization_AuthorizationUsernamePassword_GetAuthorization”></a> 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.