Esempio n. 1
0
 public AcquireDeviceCodeHandler(Authenticator authenticator, string resource, string clientId, string extraQueryParameters)
 {
     this.authenticator        = authenticator;
     this.callState            = AcquireTokenHandlerBase.CreateCallState(this.authenticator.CorrelationId);
     this.clientKey            = new ClientKey(clientId);
     this.resource             = resource;
     this.extraQueryParameters = extraQueryParameters;
 }
Esempio n. 2
0
        private async static Task <AuthenticationContext> UpdateAuthenticatorFromTemplateAsync(AuthenticationContext context)
        {
            await context.Authenticator.UpdateFromTemplateAsync(AcquireTokenHandlerBase.CreateCallState(context.CorrelationId, false));

            return(context);
        }