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; }
private async static Task <AuthenticationContext> UpdateAuthenticatorFromTemplateAsync(AuthenticationContext context) { await context.Authenticator.UpdateFromTemplateAsync(AcquireTokenHandlerBase.CreateCallState(context.CorrelationId, false)); return(context); }