<a id=“SuperOffice_WebApi_Authorization_AuthorizationAccessToken”></a> Class AuthorizationAccessToken
Namespace: SuperOffice.WebApi.AuthorizationAssembly: SuperOffice.WebApi.Authorization.AccessToken.dll OAuth 2.0 access token (and refresh token) <xref href=“SuperOffice.WebApi.Authorization.IAuthorization” data-throw-if-not-resolved=“false”></xref>. With a refresh token, AppToken and AppSecret defined we can automatically refresh access token on expiry.
Inheritance
object ← AuthorizationAccessTokenImplements
IAuthorizationInherited 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_AuthorizationAccessToken__ctor_System_String_”></a> AuthorizationAccessToken(string)
AccessTokenAuthorization Constructor. Using this constructor will not renew an access token when it has expired.Parameters
accessToken string
An OAuth 2.0 access_token.
<a id=“SuperOffice_WebApi_Authorization_AuthorizationAccessToken__ctor_System_String_System_String_System_String_System_String_System_String_System_String_”></a> AuthorizationAccessToken(string, string, string, string, string, string)
AccessTokenAuthorization Constructor. This will attempt to renew the access token when it has expired.Parameters
accessToken string
An OAuth 2.0 access_token.
refreshToken string
Refresh token that can be used to get a new access token.
clientId string
Client identifier, equal to OAuth client_id.
clientSecret string
CLient Secret, equal to Oauth client_secret. This is required for WebApps, but not for Native/Mobile apps.
redirectUrl string
Redirect URL registered to your app
subdomain string
Determines CRM online subdomain, i.e. sod, qastage or online.
<a id=“SuperOffice_WebApi_Authorization_AuthorizationAccessToken__ctor_System_String_System_String_System_String_System_String_System_String_”></a> AuthorizationAccessToken(string, string, string, string, string)
AccessTokenAuthorization Constructor. This will attempt to renew the access token when it has expired for Native/Mobile apps, which don’t require a ClientSecret.Parameters
accessToken string
An OAuth 2.0 access_token.
refreshToken string
Refresh token that can be used to get a new access token.
clientId string
Client identifier, equal to OAuth client_id.
redirectUrl string
Redirect URL registered to your app
subdomain string
Determines CRM online subdomain, i.e. sod, qastage or online.