Get rid of login?client_name=CasClient from Cas login URL

191 views
Skip to first unread message

Yorel Baker

unread,
Apr 7, 2016, 1:06:11 AM4/7/16
to pac4j-users
Hello, I am doing a senior design project that uses my school's login system (CAS). For the system to listen to the URL, the exact URL needs to be whitelisted which is blah.com/login but when i go to the login page it's blah.com/login?client_name=CasClient. I need to get rid of the ?client_name=CasClient. For my login code, it's basically like the Play-Pac4j demo but with just the CAS login parts. Any help would be appreciated!

Yorel Baker

unread,
Apr 7, 2016, 1:10:17 AM4/7/16
to pac4j-users
Although I can ask to change the whitelisted URL to include that part, it would still be helpful to know how.

Jérôme LELEU

unread,
Apr 7, 2016, 11:39:01 AM4/7/16
to Yorel Baker, pac4j-users
Hi,

Currently, you cannot get rid of the client_name. You can change this parameter name though if you want.

There is an open issue on Github: https://github.com/pac4j/pac4j/issues/535 to have a default client. It seems it could meet your needs.

Feel free to join the discussion on the Github issue...

Thanks.
Best regards,
Jérôme


--
You received this message because you are subscribed to the Google Groups "pac4j-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Jérôme LELEU

unread,
Apr 11, 2016, 4:24:37 AM4/11/16
to Yorel Baker, pac4j-users
Hi,

You can turn on DEBUG logs on org.jasig.cas to see the CAS server response.

I guess you might use a service ticket validation endpoint which is not supported by your CAS server.

Thanks.
Best regards,
Jérôme


2016-04-09 16:16 GMT+02:00 Yorel Baker <ybak...@gmail.com>:
Hey! I have another question. When I try to callback it gives me an exception saying,
Caused by: org.jasig.cas.client.validation.TicketValidationException: No principal was found in the response from the CAS server.

I really don't know how to fix that problem. As before, the code is basically the same as the play demo.

Any help would be appreciated, thanks!

Jérôme LELEU

unread,
Apr 15, 2016, 2:22:37 AM4/15/16
to Yorel Baker, pac4j-users
Hi,


Thanks.
Best regards,
Jérôme

Reply all
Reply to author
Forward
0 new messages