Dear All,
I am trying to integrate CAS with
ASP.NET application.
Everything is working fine but CAS is not able to redirect to the destination service and showing its own logged in page.
where in TARGET my service URL is defined where i want CAS to redirect .
Following configuration i have done in "web.config" file: -
<casClientConfig
notAuthorizedUrl="~/NotAuthorized.aspx"
redirectAfterValidation="true"
renew="false"
singleSignOut="true"
ticketValidatorName="Saml11"
serviceTicketManager="CacheServiceTicketManager"
/>
<authentication mode="Forms">
</authentication>
Along with this configuration i have also mentioned in "FilterConfig.cs" below two lines: -
filters.Add(new System.Web.Mvc.AuthorizeAttribute());
filters.Add(new RequireHttpsAttribute());
Please let me know where is the problem as i have no clue.
PS: - I have registered the service with CAS and also below service is present which authorizes all services to pass through CAS: -
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https|imaps|http)://.*",
"name" : "Apereo",
"theme" : "apereo",
"id" : 10000002,
"description" : "Apereo foundation sample service",
"evaluationOrder" : 1
"accessStrategy" : {
"@class" : "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled" : true,
"ssoEnabled" : true
}
}
Regards
Neha Gupta