Jérôme,
So, just in my dev environment, I'm hitting this URL
(
https://localhost:8443/hardchalk/login?client_name=SAML2Client&needs_client_redirection=true&service=http://localhost:8090/login?fact=19)
which I though would redirect me to the application after auth is
completed following the service param, the app being at
http://localhost:8090/login?fact=19 which would see the ST, then it
would call serviceValidate on it and allow access, just like it does
with regular CAS, but instead it just redirects me to
https://localhost:8443/hardchalk/login?client_name=SAML2Client
which is basically the CAS LogIn Successful page.
I turned on debug for org.jasig.cas.support.pac4j and it just shows
null for the save service
2016-01-18 12:53:44,995 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading
registered services.>
2016-01-18 12:53:44,998 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2
services.>
2016-01-18 12:55:31,457 DEBUG
[org.jasig.cas.support.pac4j.web.flow.ClientAction] -
<clientName: null>
2016-01-18 12:55:31,457 DEBUG
[org.jasig.cas.support.pac4j.web.flow.ClientAction]
- <save
service: null>
2016-01-18 12:55:31,457 DEBUG
[org.jasig.cas.support.pac4j.web.flow.ClientAction] -
<SAML2ClientUrl ->
https://localhost:8443/hardchalk/login?client_name=SAML2Client&needs_client_redirection=true>
2016-01-18 12:55:44,994 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading
registered services.>
2016-01-18 12:55:44,996 INFO
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 2
services.>
2016-01-18 12:56:06,504 DEBUG
[org.jasig.cas.support.pac4j.web.flow.ClientAction] -
<clientName: SAML2Client>
2016-01-18 12:56:06,504 DEBUG
[org.jasig.cas.support.pac4j.web.flow.ClientAction] - <client:
<SAML2Client> | callbackUrl:
https://localhost:8443/hardchalk/login?client_name=SAML2Client |
name: null | isDirectRedirection: false | enableContextualRedirects:
false |>
2016-01-18 12:56:06,504 DEBUG
[org.pac4j.saml.context.SAML2ContextProvider] - <Creating message
storage by org.pac4j.saml.storage.EmptyStorageFactory>
2016-01-18 12:56:06,749 DEBUG
[org.jasig.cas.support.pac4j.web.flow.ClientAction] - <requires
http action: {}
<RequiresHttpAction> | code: 200 |
at
org.pac4j.core.exception.RequiresHttpAction.ok(RequiresHttpAction.java:75)
at
org.pac4j.core.client.BaseClient.getCredentials(BaseClient.java:215)
Thanks for all the help on this.
Andy