{
...
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
},
...
}LoadModule auth_cas_module modules/mod_auth_cas.so
<Directory "/var/www/html/secured-by-cas">
<IfModule mod_auth_cas.c>
AuthType CAS
CASAuthNHeader On
</IfModule>
Require valid-user
</Directory>
<IfModule mod_auth_cas.c>
CASLoginUrl https://casserver.example.org/cas/login
CASValidateUrl https://casserver.example.org/cas/samlValidate
CASCookiePath /var/cache/httpd/mod_auth_cas/
CASValidateSAML On
CASSSOEnabled On
CASDebug Off
</IfModule>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello, World!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Secured Content</h1>
<p><big>This is some secure content. You should not be able to see it until you have entered your username and password.</big></p>
<h2>Attributes Returned by CAS</h2>
<?php
echo "<pre>";
if (array_key_exists('REMOTE_USER', $_SERVER)) {
echo "REMOTE_USER = " . $_SERVER['REMOTE_USER'] . "<br>";
}
$headers = getallheaders();
foreach ($headers as $key => $value) {
if (strpos($key, 'CAS_') === 0) {
echo substr($key, 4) . " = " . $value . "<br>";
}
}
echo "</pre>";
?>
</div>
</body>
</html>DAVID A. CURRY, CISSP
DIRECTOR • INFORMATION SECURITY & PRIVACY
THE NEW SCHOOL • INFORMATION TECHNOLOGY
71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 646 909-4728 • david...@newschool.edu
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/20191024122634.9aee358820053e3c75081f5e%40unex.es.
--
DAVID A. CURRY, CISSP
DIRECTOR • INFORMATION SECURITY & PRIVACY
THE NEW SCHOOL • INFORMATION TECHNOLOGY
71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 646 909-4728 • david...@newschool.edu
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/20191024142719.b3c4b47cf1135e885259ea14%40unex.es.
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAAgu-wC_eCURZNpGzC%2BLQGaLzN7yWk9b7L0KjS7eYk9u%2Bb6tGA%40mail.gmail.com.
On Thu, 24 Oct 2019 16:12:58 -0400
David Hawes <dha...@vt.edu> wrote:
> What version of mod_auth_cas are you using?
Sorry, I didn't included it in my question:
mod_auth_cas is 1.2, freshly cloned from https://github.com/apereo/mod_auth_cas.git
CAS server is 5.3.12.1.
> v1.2 supports CASv2 attributes, which should work with /serviceValidate
> provided your server supports it.
>
> Turn "CASDebug On" and you should be able to see the validation
> response with the attributes returned from your server. With
> CASAuthnHeader set to some attribute like you've done, the released
> attributes should be in the HTTP headers.
This is the CAS info logged in Tomcat
INFO [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authenticated principal [alberto] with attributes [{cn=[alberto], givenName=[alberto], irisPersonalUniqueID=[DOC:12345678R], mail=[alb...@unex.es], sn=[cabello sánchez], sn1=[cabello], sn2=[sánchez], uid=[alberto]}] via credentials [[UsernamePasswordCredential(username=alberto)]].>
I can't find any reference to headers in Apache 2 logs, except
Adding outgoing header: Set-Cookie: MOD_AUTH_CAS_S=6c60*******************d099;Secure;Path=/examples/jsp/; HttpOnly, referer: <CAS_URL>/login?service=<SERVICE_URL>
I guess I will add some printf() statements in mod_auth_cas to gather more
info, and explore the SAML approach.
--Alberto Cabello SánchezServicio de InformáticaUniversidad de Extremadura
--
By then everybody wanted attribute delivery, and it was common in SAML, so as a sort of extension to CAS the service ticket validation request and response could be done with SAML 1.1 instead, which offered attribute delivery.
After that CAS v3 came out which added attributes to the xml response.
________________________________________
From: cas-...@apereo.org [cas-...@apereo.org] on behalf of Alberto Cabello Sánchez [alb...@unex.es]
Sent: Wednesday, November 06, 2019 6:59 AM
To: cas-...@apereo.org
Subject: Re: [cas-user] mod_auth_cas and attributes
And then, among the
is
* CASv2 attributes.
--
- Website: https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fapereo.github.io%2fcas&c=E,1,uVX_J0EcDdId6cE4vDiBZ3gxZb6J_qmiWZtA0lcAsKnzaAr5VwuJ04VYRvbKlygznycmpExNPO7QCBqBt_HGtBVIJ9EKFz351STKpMtvgUK828qehkbkrw7D&typo=1
- Gitter Chatroom: https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgitter.im%2fapereo%2fcas&c=E,1,yzKP87ny_D1OIsNwVGd47GGKBugV8CIm-PcBJh9S0iKo9yXJoiN6U-QZt9oN3Y17QPKMuaQZssnYbcLD77nIbSfE6Pe3VVJRvkNUO-F4m62yuq4VStje6KdS&typo=1
- List Guidelines: https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgoo.gl%2f1VRrw7&c=E,1,lFCSheJFiA4SrjcrSHSCE-ROp90tlwsdi8FKTotUACbwnk0BrkClBu52SXJGpky3qIeKSOYeSj9t7CSz72JtGfpD6Vztho9ffKc58GH_9zxixg,,&typo=1
- Contributions: https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgoo.gl%2fmh7qDG&c=E,1,_2JIbw6CtAQb3OoCdmf71oNGNXZC7hm8u0tXVmFnoeRUjgz3MZw9_8YFBuQrXTkO-m4qgzQRlIwrVfqBBvV_2uYCN4y3Bw91BF1e4ZzUfM-bvmCKciVI&typo=1
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgroups.google.com%2fa%2fapereo.org%2fd%2fmsgid%2fcas-user%2f20191106135905.282bc33fe1549ff65e8ca535%40unex.es.&c=E,1,vO4kbFr4IWhllEtLH5TaiR3RqmVPYC_1aPq7LEG1IF0I9NXWlEtZcigHn9dibVQaUnZBrM0KPLhjd0cdmCA_Ae-fVZYOm0-gggl0lmUautoeNHCj1ms,&typo=1