public OrganizationController(IAuthorisationService auth,
                               IOrganisationsService orgService,
                               IConfigurationService configurationService)
     : base(auth)
 {
     _organisations        = orgService;
     _configurationService = configurationService;
 }
Esempio n. 2
0
 public HomeController(IAuthorisationService auth,
                       IOrganisationsService organisations,
                       IAdminService admin)
     : base(auth)
 {
     _organizationService = organisations;
     _admin = admin;
 }
 /// <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="cookieDecryptionService">A service that can decrypt a .ASPXAUTH cookie.</param>
 /// <param name="organisationRepository">the repository object that holds valid organisations</param>
 /// <param name="certificateProvider">Service that can obtain a list of certificates that can be used to generate JSON Web Tokens.</param>
 /// <param name="userProfileService">Service that can retrieve user profiles.</param>
 /// <param name="signingKeysRetriever">The class to use to obtain the signing keys.</param>
 /// <param name="signingKeysResolver">Signing keys resolver for Altinn Common AccessToken</param>
 public AuthenticationController(
     ILogger <AuthenticationController> logger,
     IOptions <GeneralSettings> generalSettings,
     ISigningKeysRetriever signingKeysRetriever,
     IJwtSigningCertificateProvider certificateProvider,
     ISblCookieDecryptionService cookieDecryptionService,
     IUserProfileService userProfileService,
     IOrganisationsService organisationRepository,
     ISigningKeysResolver signingKeysResolver)
 {
     _logger                      = logger;
     _generalSettings             = generalSettings.Value;
     _signingKeysRetriever        = signingKeysRetriever;
     _certificateProvider         = certificateProvider;
     _cookieDecryptionService     = cookieDecryptionService;
     _organisationService         = organisationRepository;
     _userProfileService          = userProfileService;
     _designerSigningKeysResolver = signingKeysResolver;
     _validator                   = new JwtSecurityTokenHandler();
 }
 public OrganisationsAdminController(IOrganisationsService organisations)
 {
     this.Organisations = organisations;
 }
Esempio n. 5
0
 public HomeController(IOrganisationsService organisations)
 {
     this.Organisations = organisations;
 }
 public OrganisationsController(IOrganisationsService organisations, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     this.Organisations = organisations;
     this.UserManager = userManager;
 }