CAS 5.2 OAuth 2 Redirect to root - not regularly

35 views
Skip to first unread message

Amin M.Tehrani

unread,
Nov 28, 2018, 9:05:41 AM11/28/18
to CAS Community
Hi,

we have a problem with cas 5.2.x using OAuth 2.
The problem is like following and it happens not all the time:


with that said, the usual approach is after correct login, cas will redirect to www.example.com/app/somelink#accessToken=xxxx

the bug that we have is, that sometimes cas redirects to the root (www.example.com) instead of redirecting to www.example.com/app/somelink...


Thank you in advance


Andy Ng

unread,
Nov 28, 2018, 11:42:48 PM11/28/18
to CAS Community
Hi,

See if your discovered bug is the same as this one: https://github.com/apereo/cas/pull/3363

If yes, then try upgrading to 5.3.x, it should be fixed already. 
If the bug is as shown in this answer, but you want to stay in 5.2.x, there is a detail description on how I fixed that in CAS 5.2.x in the PR, a bit dirty but should do the trick.

If your bug is not the same as what I describe above, then idk how to help you, just so you know after fixing the above bug listed in the PR, CAS OAuth runs completely fine in both 5.2.x and 5.3.x version for me.

Cheers!
- Andy

Amin M.Tehrani

unread,
Dec 4, 2018, 6:05:18 AM12/4/18
to CAS Community
Thank you , we are trying it out.

Amin M.Tehrani

unread,
Jan 7, 2019, 6:33:02 PM1/7/19
to CAS Community
Thank you sir,

your suggested solution works perfectly.

Cheers!
Amin


On Thursday, November 29, 2018 at 5:42:48 AM UTC+1, Andy Ng wrote:

Andy Ng

unread,
Jan 16, 2019, 6:27:01 AM1/16/19
to CAS Community
Glad it helps! - Andy
Reply all
Reply to author
Forward
0 new messages