9 #ifndef AUTHENTICATIONCONTEXT_H
10 #define AUTHENTICATIONCONTEXT_H
13 #include "AuthenticationResult.h"
14 #include "Authenticator.h"
15 #include "PromptBehavior.h"
16 #include "UserIdentifier.h"
17 #include "TokenCache.h"
19 #include "AcquireTokenInteractiveHandler.h"
20 #include "AcquireTokenNonInteractiveHandler.h"
21 #include "AcquireTokenForClientHandler.h"
22 #include "rmsauthExport.h"
26 enum class AuthorityValidationType
36 static const String& Tag() {
static const String tag=
"AuthenticationContext";
return tag;}
38 AuthenticatorPtr authenticator_;
39 TokenCachePtr tokenCache_;
43 AuthenticationContext(
const String& authority, AuthorityValidationType validateAuthority, TokenCachePtr tokenCache);
45 AuthenticationResultPtr acquireToken(
const String& resource,
const String& clientId,
const String& redirectUri, PromptBehavior promptBehavior,
const String& userId =
"");
46 AuthenticationResultPtr acquireToken(
const String& resource,
const String& clientId, UserCredentialPtr userCredentiar);
47 AuthenticationResultPtr acquireToken(
const String& resource,
const String& clientId, UserAssertionPtr userAssertion);
48 AuthenticationResultPtr acquireToken(
const String& resource, ClientCredentialPtr clientCredential);
51 AuthenticationResultPtr acquireTokenCommonAsync(
const String& resource,
const String& clientId,
const String& redirectUri, PromptBehavior promptBehavior, UserIdentifierPtr userId,
const String& extraQueryParameters,
bool callSync =
false);
52 AuthenticationResultPtr acquireTokenCommonAsync(
const String& resource,
const String& clientId, UserCredentialPtr userCredential,
bool callSync =
false);
53 AuthenticationResultPtr acquireTokenCommonAsync(
const String& resource,
const String& clientId, UserAssertionPtr userAssertionl,
bool callSync =
false);
54 AuthenticationResultPtr acquireTokenCommonAsync(
const String& resource, ClientCredentialPtr clientCredential,
bool callSync =
false);
56 static IWebUIPtr createWebAuthenticationDialog(PromptBehavior promptBehavior);
61 #endif // AUTHENTICATIONCONTEXT_H
Definition: AuthenticationContext.h:34
Definition: AcquireTokenForClientHandler.h:14