C# 클래스 Tailspin.Surveys.Web.Security.AuthenticationContextExtensions

파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps

공개 메소드들

메소드 설명
AcquireTokenByAuthorizationCodeAsync ( this authenticationContext, string authorizationCode, Uri redirectUri, AdalCredential credentials, string resource ) : Task

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, AdalCredential credentials, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId ) : Task

Acquires security token without asking for user credential.

메소드 상세

AcquireTokenByAuthorizationCodeAsync() 공개 정적인 메소드

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).
public static AcquireTokenByAuthorizationCodeAsync ( this authenticationContext, string authorizationCode, Uri redirectUri, AdalCredential credentials, string resource ) : Task
authenticationContext this The instance to use for token acquisition.
authorizationCode string The authorization code received from service authorization endpoint.
redirectUri System.Uri The redirect address used for obtaining authorization code.
credentials AdalCredential A instance containing the credentials to use for token acquisition.
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.
리턴 Task

AcquireTokenSilentAsync() 공개 정적인 메소드

Acquires security token without asking for user credential.
public static AcquireTokenSilentAsync ( this authenticationContext, string resource, AdalCredential credentials, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId ) : Task
authenticationContext this The instance to use for token acquisition.
resource string Identifier of the target resource that is the recipient of the requested token.
credentials AdalCredential A instance containing the credentials to use for token acquisition.
userId Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier Identifier of the user token is requested for. This parameter can be .Any.
리턴 Task