Show / Hide Table of Contents

Interface IAuthorizationService

Provides authorization services, more specifically access tokens that can be used to authorized UOL platform calls.

Namespace: UOL.SDK.Authorization
Assembly: UOL.SDK.dll
Syntax
public interface IAuthorizationService

Methods

GetAccessToken()

Gets an OAUTH2.0 access token from an authorization server. Authorization services should first get a non-expired cached access token.

Declaration
string GetAccessToken()
Returns
Type Description
System.String

An OAUTH2.0 access token that to be used to authorize UOL platform services.

Remarks

If a non-expired cached access token is not unavailable and a refresh token is, a new access token should be requested from the refresh token.

If the refresh token has also expired or is not available, the currently registered IAuthorizationTokenProvider should be used to acquire a completely new set of authorization tokens.

Logout()

Logs out the active user and deletes all registry items for authorization.

Declaration
void Logout()