Skip to content

Commit b2e7975

Browse files
author
Blair Allen
committed
Added CAS v3.0 references where appropriate
1 parent cefaf55 commit b2e7975

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

DotNetCasClient/CasAuthentication.cs

+8-7
Original file line numberDiff line numberDiff line change
@@ -848,14 +848,15 @@ internal static bool ProcessProxyCallbackRequest()
848848

849849
/// <summary>
850850
/// Validates a ticket contained in the URL, presumably generated by
851-
/// the CAS server after a successful authentication. The actual ticket
851+
/// the CAS server after a successful authentication. The actual ticket
852852
/// validation is performed by the configured TicketValidator
853-
/// (i.e., CAS 1.0, CAS 2.0, SAML 1.0). If the validation succeeds, the
854-
/// request is authenticated and a FormsAuthenticationCookie and
855-
/// corresponding CasAuthenticationTicket are created for the purpose of
856-
/// authenticating subsequent requests (see ProcessTicketValidation
857-
/// method). If the validation fails, the authentication status remains
858-
/// unchanged (generally the user is and remains anonymous).
853+
/// (i.e., CAS 1.0, CAS 2.0, CAS 3.0, SAML 1.0). If the validation
854+
/// succeeds, the request is authenticated and a
855+
/// FormsAuthenticationCookie and corresponding CasAuthenticationTicket
856+
/// are created for the purpose of authenticating subsequent requests
857+
/// (see ProcessTicketValidation method). If the validation fails, the
858+
/// authentication status remains unchanged (generally the user is and
859+
/// remains anonymous).
859860
/// </summary>
860861
internal static void ProcessTicketValidation()
861862
{

DotNetCasClient/Validation/TicketValidator/Cas30ServiceTicketValidator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected override ICasPrincipal ParseResponseFromServer(string response, string
100100
}
101101
catch (InvalidOperationException)
102102
{
103-
throw new TicketValidationException("CAS Server response does not conform to CAS 2.0/3.0 schema");
103+
throw new TicketValidationException("CAS Server response does not conform to CAS 3.0 schema");
104104
}
105105

106106
if (serviceResponse.IsAuthenticationSuccess)

DotNetCasClient/Validation/TicketValidator/ITicketValidator.cs

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ string ServiceParameterName
6565
/// <list>
6666
/// <item>CAS 1.0: validate</item>
6767
/// <item>CAS 2.0: serviceValidate or proxyValidate</item>
68+
/// <item>CAS 3.0: p3/serviceValidate or p3/proxyValidate</item>
6869
/// <item>SAML 1.1: samlValidate</item>
6970
/// </list>
7071
/// </summary>

ExampleWebSite/web.config.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- casServerUrlPrefix
5757
URL to root of CAS server application.
5858
- ticketValidatorName
59-
Supported values: Cas10, Cas20, and Saml11.
59+
Supported values: Cas10, Cas20, Cas30, and Saml11.
6060
Name of ticket validator that validates CAS tickets using a particular protocol.
6161
6262
Optional Attributes:
@@ -116,7 +116,7 @@
116116
renew="false"
117117
singleSignOut="true"
118118
ticketTimeTolerance="5000"
119-
ticketValidatorName="Cas20"
119+
ticketValidatorName="Cas30"
120120
proxyTicketManager="CacheProxyTicketManager"
121121
serviceTicketManager="CacheServiceTicketManager"
122122
gatewayStatusCookieName="CasGatewayStatus" />

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Apereo .NET CAS client provides CAS integration for the Microsoft Windows pl
1515

1616
## Features ##
1717

18-
- Supports CAS Protocol 1.0 and 2.0 and SAML 1.1
18+
- Supports CAS Protocol 1.0, 2.0, and 3.0 and SAML 1.1
1919
- Supports CAS single sign-out
2020
- Rich support for Microsoft ASP.NET platform integration through Forms Authentication framework
2121

0 commit comments

Comments
 (0)