/// <summary> /// Synchronously executes the OAuth 2.0 Authentication Request and returns the result. /// </summary> /// <param name="authenticator">The <see cref="IJwtAuthenticator"/>.</param> /// <param name="authenticationRequest">The Authentication Request this authenticator will attempt.</param> /// <returns>An Authentication Result representing the successful authentication.</returns> /// <exception cref="Error.ResourceException">The authentication failed.</exception> public static IAccessToken Authenticate(this IJwtAuthenticator authenticator, IJwtAuthenticationRequest authenticationRequest) => (authenticator as IJwtAuthenticatorSync).Authenticate(authenticationRequest);
public WeatherForecastController(ILogger <WeatherForecastController> logger, IBus _bus, IJwtAuthenticator authenticator) { _logger = logger; this.bus = _bus; this.authenticator = authenticator; }
public JwtLoginService(IJwtAuthenticator jwt) { _jwt = jwt; }
public JwtEFIdentityLoginService(IJwtAuthenticator jwt, UserManager <TUser> userManager, SignInManager <TUser> signInManager, TDbContext db) : base(jwt, userManager, signInManager) { _db = db; }
public JwtIdentityLoginService(IJwtAuthenticator jwt, UserManager <TUser> userManager, SignInManager <TUser> signInManager) : base(jwt) { _userManager = userManager; _signInManager = signInManager; }