Пример #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;
 }
Пример #2
0
        private async static Task <AuthenticationContext> UpdateAuthenticatorFromTemplateAsync(AuthenticationContext context)
        {
            await context.Authenticator.UpdateFromTemplateAsync(AcquireTokenHandlerBase.CreateCallState(context.CorrelationId, false));

            return(context);
        }