예제 #1
0
        public Passwords(IPublicClientApplication app, HttpClient client, string passwordEndPoint, string passwordApiCode, string passwordAPiScope, string passwordId)
        {
            tokenAcquisitionHelper = new PublicAppUsingDeviceCodeFlow(app);
            protectedApiCallHelper = new ProtectedApiCallHelper(client);

            this.PasswordEndPoint = passwordEndPoint;
            this.PasswordApiCode  = passwordApiCode;
            this.PasswordId       = passwordId;
            this.Scopes           = new string[] { passwordAPiScope };
        }
예제 #2
0
        public Passwords(IPublicClientApplication app, PasswordConfiguration config, ILogger <Passwords> logger)
        {
            tokenAcquisitionHelper = new PublicAppUsingDeviceCodeFlow(app);
            protectedApiCallHelper = new ProtectedApiCallHelper <PasswordHistory>(client);

            this.PasswordEndPoint = config.PasswordApiEndpoint;
            this.PasswordApiCode  = config.PasswordApiCode;
            this.Scopes           = new string[] { config.PasswordApiScope };

            _logger = logger;
        }