Skip to content

sdcb/YeluCasSsoClient

Repository files navigation

Yelu CAS SSO Client NuGet

Integrate with ASP.NET Identity:

In Startup.cs ConfigureServices method(replace the example url with yours):

services.AddAuthentication().AddYeluCasSso("https://example.com/cas");

Integrate with raw ASP.NET Core project:

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();

About

One line code to integrate your Yelu CAS SSO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages