Method | Description | |
---|---|---|
AcquireTokenByAuthorizationCodeAsync ( this authenticationContext, string authorizationCode, |
Acquires security token from the authority using an authorization code previously received. This method does not lookup token cache, but stores the result in it, so it can be looked up using other methods such as M:Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireTokenSilentAsync(System.String,System.String,Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier).
|
|
AcquireTokenSilentAsync ( this authenticationContext, string resource, |
Acquires security token without asking for user credential.
|
public static AcquireTokenByAuthorizationCodeAsync ( this authenticationContext, string authorizationCode, |
||
authenticationContext | this | The |
authorizationCode | string | The authorization code received from service authorization endpoint. |
redirectUri | The redirect address used for obtaining authorization code. | |
credentials | A |
|
resource | string | Identifier of the target resource that is the recipient of the requested token. It can be null if provided earlier to acquire authorizationCode. |
return | Task |
public static AcquireTokenSilentAsync ( this authenticationContext, string resource, |
||
authenticationContext | this | The |
resource | string | Identifier of the target resource that is the recipient of the requested token. |
credentials | A |
|
userId | Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier | Identifier of the user token is requested for. This parameter can be |
return | Task |