jacekkow / keycloak-protocol-cas

CAS protocol provider for Keycloak
https://issues.jboss.org/browse/KEYCLOAK-1047
Apache License 2.0
96 stars 30 forks source link

Page Not Found Error With CAS Endpoint #27

Closed matthew-williamson-sd closed 3 years ago

matthew-williamson-sd commented 3 years ago

Hi,

I'm having some issues running keycloak-protocol-cas with keycloak 12.0.4. I add the jar to the deployments directory. I can see CAS as an option in the frontend and tomcat says it's been laoded so seems to be working. My application seems to redirect to the correct url (i.e. http://localhost:8180/auth/realms/master/protocol/cas) but gets a 'Page Not Found'

I've tested the app against Apereo's test server and it appears to work, so unsure what the issue could be.

Any help you can give would be appreciated, and I apologise if I'm missing something blindingly obvious!

Screenshot 2021-05-10 at 17 46 44

Screenshot 2021-05-10 at 17 48 59

jacekkow commented 3 years ago

http://localhost:8180/auth/realms/master/protocol/cas is not a correct URL! Per CAS protocol specification you must append /login to the URL to get the authentication endpoint.

Hence the correct URL would be http://localhost:8180/auth/realms/master/protocol/cas/login (plus necessary parameters like service)

jacekkow commented 3 years ago

I'm closing this issue. Feel free to reopen or comment if you need more help.

matthew-williamson-sd commented 3 years ago

This did indeed solve it for me; thanks very much!