/oauth2.0/authorize not redirect to callbackurl (CAS Version: 5.1.4)

83 views
Skip to first unread message

Leo Pintos

unread,
Jan 11, 2018, 3:30:24 PM1/11/18
to CAS Community
Hi,
I'm trying to redirect the authorize to https://localhost:8443/clienteoauth/recepcionCode
but doesn't work and I can se the follow in the log:

2018-01-11 16:42:34,287 DEBUG [org.apereo.cas.support.oauth.web.OAuth20CasCallbackUrlResolver] (default task-3) Final resolved callback URL is [https://localhost:8443/cas/oauth2.0/callbackAuthorize?client_name=CasOAuthClient&client_id=app_prueba&redirect_uri=https://localhost:8443/clienteoauth/recepcionCode]

2018-01-11 16:42:34,287 DEBUG [org.apereo.cas.support.oauth.web.response.OAuth20DefaultCasClientRedirectActionBuilder] (default task-3) Final redirect url is [https://localhost:8443/cas/login?service=https%3A%2F%2Flocalhost%3A8443%2Fcas%2Foauth2.0%2FcallbackAuthorize%3Fclient_name%3DCasOAuthClient%26client_id%3Dapp_prueba%26redirect_uri%3Dhttps%3A%2F%2Flocalhost%3A8443%2Fclienteoauth%2FrecepcionCode]

Next, my json configuration:
{
  "@class" : "org.apereo.cas.support.oauth.services.OAuthRegisteredService",
  "clientId": "app_prueba",
  "clientSecret": "clientSecret",
  "bypassApprovalPrompt": false,
  "generateRefreshToken": false,
  "serviceId" : "^(https?|http?):.*",
  "name" : "MyOAuthservice",
  "id" : 10000002,
}

I don't know what's wrong and maybe it's a CAS bug.
Any help?
Thank in advance.
Leo.

Reply all
Reply to author
Forward
0 new messages