TokenProvider.GetAccessToken

GetAccessToken()

Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.

public virtual OAuthToken GetAccessToken()

Return Value

Returns oAuth access token

See Also


GetAccessToken(bool)

Gets oAuth access token.

public virtual OAuthToken GetAccessToken(bool ignoreExistingToken)
ParameterTypeDescription
ignoreExistingTokenBooleanIf ignoreExistingToken is true, requests new token from a server. Otherwise behaviour is depended on whether token exists or not. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.

Return Value

Returns oAuth access token

See Also