In Startup.cs
ConfigureServices
method(replace the example url with yours):
services.AddAuthentication().AddYeluCasSso("https://example.com/cas");
In Startup.cs
ConfigureServices
method(replace the example url with yours):
services.AddAuthentication(o =>
{
o.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
o.DefaultChallengeScheme = YeluCasSsoDefaults.AuthenticationScheme;
}).AddCookie().AddYeluCasSso("https://example.com/cas");
In Startup.cs
Configure
method(replace the example url with yours):
app.UseAuthentication();