HttpCloudAuthenticator

Zum Einbinden des Authentication-Moduls aus mkmLib in eine NET-Applikation fügen in der Datei startup.cs folgenden Code hinzu:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
// Authentication-Settings
services.Configure<AuthenticationServiceOptions>(options =>
{
options.IsLoginRequired = true;
options.AuthenticationUrl = "https://www.mkm-software.de";
options.PortalIndex = PORTAL;
options.SlidingCacheExpiration = TimeSpan.FromMinutes(60);
options.AuthCookieExpiration = TimeSpan.FromDays(3);
});
// Uses HttpCloudAuthenticator
services.AddScoped<IAuthenticationService, AuthenticationService>();
// Authentication-Settings services.Configure<AuthenticationServiceOptions>(options => { options.IsLoginRequired = true; options.AuthenticationUrl = "https://www.mkm-software.de"; options.PortalIndex = PORTAL; options.SlidingCacheExpiration = TimeSpan.FromMinutes(60); options.AuthCookieExpiration = TimeSpan.FromDays(3); }); // Uses HttpCloudAuthenticator services.AddScoped<IAuthenticationService, AuthenticationService>();
// Authentication-Settings
services.Configure<AuthenticationServiceOptions>(options =>
{
    options.IsLoginRequired = true;
    options.AuthenticationUrl = "https://www.mkm-software.de";
    options.PortalIndex = PORTAL;
    options.SlidingCacheExpiration = TimeSpan.FromMinutes(60);
    options.AuthCookieExpiration = TimeSpan.FromDays(3);
});

// Uses HttpCloudAuthenticator
services.AddScoped<IAuthenticationService, AuthenticationService>();