We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d10c8 commit b804e58Copy full SHA for b804e58
src/ITfoxtec.Identity.Saml2.MvcCore/Configuration/Saml2ServiceCollectionExtensions.cs
@@ -9,12 +9,12 @@ public static class Saml2ServiceCollectionExtensions
9
/// <summary>
10
/// Add SAML 2.0 configuration.
11
/// </summary>
12
- public static IServiceCollection AddSaml2(this IServiceCollection services)
+ public static IServiceCollection AddSaml2(this IServiceCollection services, string loginPath = "/Auth/Login")
13
{
14
services.AddAuthentication(Saml2Constants.AuthenticationScheme)
15
.AddCookie(Saml2Constants.AuthenticationScheme, o =>
16
17
- o.LoginPath = new PathString("/Auth/Login");
+ o.LoginPath = new PathString(loginPath);
18
});
19
20
return services;
0 commit comments