Luismi,
What happens if you login in to application B first, then A?
Ray
Hi Luismi,
I ran into this as well with 5.2.5. You have to setup your domain name properly so that the CAS cookie will be sent to the server. You can debug it using the chrome debug console.
server.port:8080
server.ssl.enabled=false
cas.server.name: http://localhost:8080
cas.server.prefix: http://localhost:8080/cas
# for development only, so we can use http
cas.tgc.secure=false
cas.tgc.domain=localhost
cas.tgc.path=/cas
cas.serviceRegistry.json.location=file:///etc/cas/config/services/
logging.config: file:/etc/cas/config/log4j2.xml
Then run "./build.sh run".
--
- 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/6d98c059-82a9-49de-907b-af038558a911%40apereo.org.
-- Trenton D. Adams Senior Systems Analyst/Web Software Developer Applications Unit - ITS Athabasca University (780) 675-6195 It is only when you are surrounded by a supportive team, that you can achieve your best. Instead of tearing people down, try building them up!--
This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed.---
I have attached a picture of the CAS screen after trying to go to the second application (B) where you can see the cookies and the behavior of the CAS. SSO does not work.
If not service parameter send to login, SSO works fine, but with service parameter don't : login page appears and login is required again.
-- Ray Bon Programmer analyst Development Services, University Systems 2507218831 | CLE 019 | rb...@uvic.ca
Service Attributes are (from debug log):
Regards, Luismi.
Regards, Luismi.
The 1 goes from the boot of tomcat until just after completing the identification of the application A (casEjemplo) and validate the ticket recovering the user SAML. It's ALL OK.
The 2 is what corresponds to when you try to login from application B (casEjemplo2), until the "wrong" login screen is displayed (that should not appear).
Regards, Luismi.
2018-06-19 10:42:09,721 DEBUG [org.apereo.cas.authentication.RegisteredServiceAuthenticationHandlerResolver] - <No specific authentication handlers are required for this transaction>
2018-06-19 10:42:09,721 DEBUG [org.apereo.cas.authentication.RegisteredServiceAuthenticationHandlerResolver] - <Authentication handlers used for this transaction are [HttpBasedServiceCredentialsAuthenticationHandler,miHandlerSSL,miHandlerIti,miHandlerLDAP,miHandler,ClientAuthenticationHandler,AcceptUsersAuthenticationHandler]>
2018-06-19 10:42:09,721 DEBUG [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] - <Credential is not one of username/password and is not accepted by handler [AcceptUsersAuthenticationHandler]>
The result is the same if you first login in application B (casEjemplo2) and then in A (casEjemplo). Attached log of CAS as well as three images: 1.- CAS Login screen when accessing from application B (casEjemplo2). OK. 2.- Application screen B after redirection with the data obtained from CAS. OK. 3.- CAS Login screen when accessing from application A (casEjemplo). ERROR: SSO should work correctly and the login screen should not appear.
Thanks in advance.
Regards, Luismi.
-- Ray Bon Programmer analyst Development Services, University Systems 2507218831 | CLE 019 | rb...@uvic.ca
drop the tables created in version 5.2.X and run the application again. The error will no longer appear.
:)
--
- 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/1529519691.1807.61.camel%40uvic.ca.
I had to put the following piece of code in the AuthenticationHandler to retrieve the existing authentication in the session and the Principal if exist before trying to authenticate again: