Метод | Описание | |
---|---|---|
ClearCacheAsync ( |
This method clears the user's Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache.
|
|
GetTokenForWebApiAsync ( |
This method retrieves the access token for the WebAPI resource that has previously been retrieved and cached. This method will fail if an access token for the WebAPI resource has not been retrieved and cached. You can use the RequestAccessTokenAsync method to retrieve and cache access tokens.
|
|
RequestTokenAsync ( |
This method acquires an access token using an authorization code and ADAL. The access token is then cached in a TokenCache to be used later (by calls to GetTokenForWebApiAsync).
|
|
SurveysTokenService ( IOptions |
Initializes a new instance of Tailspin.Surveys.Web.Security.SurveysTokenService.
|
Метод | Описание | |
---|---|---|
CreateAuthenticationContext ( |
||
GetAccessTokenForResourceAsync ( string resource, |
public ClearCacheAsync ( |
||
claimsPrincipal | The |
|
Результат | System.Threading.Tasks.Task |
public GetTokenForWebApiAsync ( |
||
user | The |
|
Результат | Task |
public RequestTokenAsync ( |
||
claimsPrincipal | A |
|
authorizationCode | string | a string authorization code obtained when the user signed in |
redirectUri | string | The Uri of the application requesting the access token |
resource | string | The resouce identifier of the target resource |
Результат | Task |
public SurveysTokenService ( IOptions |
||
options | IOptions |
|
tokenCacheService | ITokenCacheService | |
credentialService | ICredentialService | |
logger | ILogger |
|
Результат | System |