public GrandIdBankIdAuthenticationHandler(
     IOptionsMonitor <GrandIdBankIdAuthenticationOptions> options,
     ILoggerFactory loggerFactory,
     UrlEncoder encoder,
     ISystemClock clock,
     ILogger <GrandIdBankIdAuthenticationHandler> logger,
     IGrandIdApiClient grandIdApiClient
     )
     : base(options, loggerFactory, encoder, clock)
 {
     _logger           = logger;
     _grandIdApiClient = grandIdApiClient;
 }
Esempio n. 2
0
 public static Task <LogoutResponse> LogoutAsync(this IGrandIdApiClient apiClient, string sessionId)
 {
     return(apiClient.LogoutAsync(new LogoutRequest(sessionId)));
 }
Esempio n. 3
0
 public static Task <BankIdGetSessionResponse> BankIdGetSessionAsync(this IGrandIdApiClient apiClient, string sessionId)
 {
     return(apiClient.BankIdGetSessionAsync(new BankIdGetSessionRequest(sessionId)));
 }
Esempio n. 4
0
 public static Task <BankIdFederatedLoginResponse> BankIdFederatedLoginAsync(this IGrandIdApiClient apiClient, string?callbackUrl = null, bool?useChooseDevice = null, bool?useSameDevice = null, bool?askForPersonalIdentityNumber = null, string?personalIdentityNumber = null, bool?requireMobileBankId = null, string?customerUrl = null, bool?showGui = null, string?signUserVisibleData = null, string?signUserNonVisibleData = null)
 {
     return(apiClient.BankIdFederatedLoginAsync(new BankIdFederatedLoginRequest(callbackUrl, useChooseDevice, useSameDevice, askForPersonalIdentityNumber, personalIdentityNumber, requireMobileBankId, customerUrl, showGui, signUserVisibleData, signUserNonVisibleData)));
 }