Folks
I am new to CAS and is trying to setup the CAS as OIDC provider for other services.
My limited understanding about CAS OIDC is as follows:
A. You make a call to required "server/cas/oidc/authorize" - with required parameters.
B. The CAS redirects the requests to "server/cas/oauth2.0/callbackAuthorize" end point.
C. You get the login page and upon successful authentication - a service ticket for "
/cas/oauth2.0/callbackAuthorize" is created for "
CasOAuthClient"
D. Once the service ticket has been validated by "/cas/oauth2.0/callbackAuthorize" , an access ticket - of the format as "OC-1-v0ukA6hDx1Wbv1jzyimIQFwL4EeMBPPX" is created for further process.
My issue is as follows:
1. After the successful service ticket validation for the
CasOAuthClient- rather than creation of access ticket - I am being redirected back to the login page.
The following are the lines - where i suspect the issue:
On my location machine - once we have done the service ticket validation - i am getting the lines:
=============================================================
WHO: root
WHAT: ST-1-XsNPfqOVinN5BrMSXNvENcWuD08-DESKTOP-GLUMAQ0 for http://localhost:8443/cas/oauth2.0/callbackAuthorize?client_id=client&redirect_uri=http%3A%2F%2Flocalhost%3A80%2Fsecure%2F...
ACTION: SERVICE_TICKET_VALIDATE_SUCCESS
APPLICATION: CAS
WHEN: Thu Nov 12 16:30:02 IST 2020
CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1
SERVER IP ADDRESS: 0:0:0:0:0:0:0:1
=============================================================
>
2020-11-12 16:30:02,509 DEBUG [org.apereo.cas.util.HttpRequestUtils] - <Found provided request parameter [client_id]>
2020-11-12 16:30:02,509 DEBUG [org.apereo.cas.util.HttpRequestUtils] - <Found provided request parameter [redirect_uri]>
2020-11-12 16:30:02,509 DEBUG [org.apereo.cas.util.HttpRequestUtils] - <Found provided request parameter [response_type]>
2020-11-12 16:30:02,509 DEBUG [org.apereo.cas.support.oauth.util.OAuth20Utils] - <Response type: [code]>
2020-11-12 16:30:02,510 DEBUG [org.apereo.cas.support.oauth.validator.authorization.OAuth20AuthorizationCodeResponseTypeAuthorizationRequestValidator] - <Locating registered service for client id [client]>
And it proceeds with Access Token Creation.
I am running the same cas .war file on server and on my location machine and making the same GET Call to both.
Really perplexed why in one case - [on server where i m not running as localhost] I am stuck in endless loop of authentication.
Any idea's are welcome especially from people who have successfully implemented OIDC in CAS.
Thank you in Advance.
Ritesh