예제 #1
0
 public UsernamePasswordRequest(
     IServiceBundle serviceBundle,
     AuthenticationRequestParameters authenticationRequestParameters,
     AcquireTokenByUsernamePasswordParameters usernamePasswordParameters)
     : base(serviceBundle, authenticationRequestParameters, usernamePasswordParameters)
 {
     _usernamePasswordParameters  = usernamePasswordParameters;
     _commonNonInteractiveHandler = new CommonNonInteractiveHandler(
         authenticationRequestParameters.RequestContext,
         serviceBundle);
 }
 public IntegratedWindowsAuthRequest(
     IServiceBundle serviceBundle,
     AuthenticationRequestParameters authenticationRequestParameters,
     AcquireTokenByIntegratedWindowsAuthParameters integratedWindowsAuthParameters)
     : base(serviceBundle, authenticationRequestParameters, integratedWindowsAuthParameters)
 {
     _integratedWindowsAuthParameters = integratedWindowsAuthParameters;
     _commonNonInteractiveHandler     = new CommonNonInteractiveHandler(
         authenticationRequestParameters.RequestContext,
         serviceBundle);
 }
예제 #3
0
 public UsernamePasswordRequest(
     IServiceBundle serviceBundle,
     AuthenticationRequestParameters authenticationRequestParameters,
     ApiEvent.ApiIds apiId,
     UsernamePasswordInput usernamePasswordInput)
     : base(serviceBundle, authenticationRequestParameters, apiId)
 {
     _usernamePasswordInput       = usernamePasswordInput ?? throw new ArgumentNullException(nameof(usernamePasswordInput));
     _commonNonInteractiveHandler = new CommonNonInteractiveHandler(
         authenticationRequestParameters.RequestContext,
         usernamePasswordInput,
         serviceBundle);
 }
 public IntegratedWindowsAuthRequest(
     IServiceBundle serviceBundle,
     AuthenticationRequestParameters authenticationRequestParameters,
     ApiEvent.ApiIds apiId,
     IntegratedWindowsAuthInput iwaInput)
     : base(serviceBundle, authenticationRequestParameters, apiId)
 {
     _iwaInput = iwaInput ?? throw new ArgumentNullException(nameof(iwaInput));
     _commonNonInteractiveHandler = new CommonNonInteractiveHandler(
         authenticationRequestParameters.RequestContext,
         _iwaInput,
         serviceBundle);
 }