AspNetCore.Security.CAS 2.0.1

AspNetCore.Security.CAS Class Library

There is a newer version of this package available.
See the version list below for details.
Install-Package AspNetCore.Security.CAS -Version 2.0.1
dotnet add package AspNetCore.Security.CAS --version 2.0.1
<PackageReference Include="AspNetCore.Security.CAS" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.Security.CAS --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AspNetCore.Security.CAS, 2.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AspNetCore.Security.CAS as a Cake Addin
#addin nuget:?package=AspNetCore.Security.CAS&version=2.0.1

// Install AspNetCore.Security.CAS as a Cake Tool
#tool nuget:?package=AspNetCore.Security.CAS&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

AspNetCore.Security.CAS

AspNet.Security.CAS is an ASP.NET Core 1/MVC 6 authentication provider for CAS.

This implimentation is based upon on Noel Bundick's Owin.Security.CAS provider.

Microsoft.AspNetCore.Authentication.OAuth and Microsoft.AspNetCore.Authentication.Twitter were used as structural references.

Usage

  1. Install the NuGet package

    PM> Install-Package AspNet.Security.CAS

  2. Open Startup.cs

  3. Paste the following code below // Uncomment the following lines to enable logging in with third party login providers

    app.UseCasAuthentication(new CasOptions
    {
        CasServerUrlBase = "https://your.cas.server.com/cas"
    });
    

CasOptions

At a minmum, the CasOptions object needs to have the CasServerUrlBase property set to the URL to your CAS server.

These options extend the RemoteAuthenticationOptions class.

Properties

  • CasServerUrlBase - The base url of the CAS server. Required.

  • TicketValidator - Gets or sets the ICasTicketValidator used to validate tickets from CAS. Default: Cas2TicketValidator

  • Caption - Get or sets the text that the user can display on a sign in user interface. Default: "CAS".

  • SignInAsAuthenticationType - Gets or sets the name of another authentication middleware which will be responsible for actually issuing a user ClaimsIdentity.

  • StateDataFormat - Gets or sets the type used to secure data handled by the middleware.

  • NameClaimType - If set, and using the CAS 2 payload, the ticket validator will set the NameClaimType to the specified CAS attribute rather than using the default Name claim.

  • NameIdentifierAttribute - If set, and using the CAS 2 payload, the ticket validator use the specified CAS attribute as the NameIdentifier claim, which is used to associate external logins.

Inherited Properties

  • BackchannelTimeout - Gets or sets timeout value in milliseconds for back channel communications with CAS. Default: 60s

  • HttpMessageHandler - The HttpMessageHandler used to communicate with CAS.

  • CallbackPath - The request path within the application's base path where the user-agent will be returned. The middleware will process this request when it arrives.

  • SignInScheme - Gets or sets the authentication scheme corresponding to the middleware responsible of persisting user's identity after a successful authentication. This value typically corresponds to a cookie middleware registered in the Startup class. When omitted, SharedAuthenticationOptions.SignInScheme is used as a fallback value.

Other CAS Providers

MVC 5: Owin.Security.CAS

MVC 4 and below: Jasig's .NET CAS Client

MIT license

AspNetCore.Security.CAS

AspNet.Security.CAS is an ASP.NET Core 1/MVC 6 authentication provider for CAS.

This implimentation is based upon on Noel Bundick's Owin.Security.CAS provider.

Microsoft.AspNetCore.Authentication.OAuth and Microsoft.AspNetCore.Authentication.Twitter were used as structural references.

Usage

  1. Install the NuGet package

    PM> Install-Package AspNet.Security.CAS

  2. Open Startup.cs

  3. Paste the following code below // Uncomment the following lines to enable logging in with third party login providers

    app.UseCasAuthentication(new CasOptions
    {
        CasServerUrlBase = "https://your.cas.server.com/cas"
    });
    

CasOptions

At a minmum, the CasOptions object needs to have the CasServerUrlBase property set to the URL to your CAS server.

These options extend the RemoteAuthenticationOptions class.

Properties

  • CasServerUrlBase - The base url of the CAS server. Required.

  • TicketValidator - Gets or sets the ICasTicketValidator used to validate tickets from CAS. Default: Cas2TicketValidator

  • Caption - Get or sets the text that the user can display on a sign in user interface. Default: "CAS".

  • SignInAsAuthenticationType - Gets or sets the name of another authentication middleware which will be responsible for actually issuing a user ClaimsIdentity.

  • StateDataFormat - Gets or sets the type used to secure data handled by the middleware.

  • NameClaimType - If set, and using the CAS 2 payload, the ticket validator will set the NameClaimType to the specified CAS attribute rather than using the default Name claim.

  • NameIdentifierAttribute - If set, and using the CAS 2 payload, the ticket validator use the specified CAS attribute as the NameIdentifier claim, which is used to associate external logins.

Inherited Properties

  • BackchannelTimeout - Gets or sets timeout value in milliseconds for back channel communications with CAS. Default: 60s

  • HttpMessageHandler - The HttpMessageHandler used to communicate with CAS.

  • CallbackPath - The request path within the application's base path where the user-agent will be returned. The middleware will process this request when it arrives.

  • SignInScheme - Gets or sets the authentication scheme corresponding to the middleware responsible of persisting user's identity after a successful authentication. This value typically corresponds to a cookie middleware registered in the Startup class. When omitted, SharedAuthenticationOptions.SignInScheme is used as a fallback value.

Other CAS Providers

MVC 5: Owin.Security.CAS

MVC 4 and below: Jasig's .NET CAS Client

MIT license

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.5 40,900 5/3/2019
2.0.4 4,363 6/29/2018
2.0.3 562 6/21/2018
2.0.2 1,446 4/10/2018
2.0.1 5,105 10/11/2017
1.1.0 628 10/11/2017
1.0.0 1,690 6/30/2016