public AuthenticationController( ILogger <AuthenticationController> logger, IOptions <GeneralSettings> generalSettings, JwtCookieHandler jwtHandler) { this.logger = logger; this.generalSettings = generalSettings.Value; this.jwtHandler = jwtHandler; }
/// <summary> /// Initialises a new instance of the <see cref="AuthenticationController"/> class with the given dependencies. /// </summary> /// <param name="logger">A generic logger</param> /// <param name="generalSettings">Configuration for the authentication scope.</param> /// <param name="jwtHandler">the handler for jwt cookie authentication</param> /// <param name="signingKeysRetriever">The class to use to obtain the signing keys.</param> /// <param name="organisationRepository">the repository object that holds valid organisations</param> public AuthenticationController( ILogger <AuthenticationController> logger, IOptions <GeneralSettings> generalSettings, JwtCookieHandler jwtHandler, ISigningKeysRetriever signingKeysRetriever, IOrganisationRepository organisationRepository) { this.logger = logger; this.generalSettings = generalSettings.Value; this.jwtHandler = jwtHandler; this.signingKeysRetriever = signingKeysRetriever; this.organisationRepository = organisationRepository; }
public HomeController( ILogger <HomeController> logger, IOptions <GeneralSettings> generalSettings, IOptions <LocalPlatformSettings> localPlatformSettings, IApplicationRepository applicationRepository, IUserProfiles userProfileService, JwtCookieHandler jwtHandler) { _logger = logger; _generalSettings = generalSettings.Value; this._localPlatformSettings = localPlatformSettings.Value; this._applicationRepository = applicationRepository; this._userProfileService = userProfileService; this.jwtHandler = jwtHandler; }