delegated login, user waits too long, CAS error on redirect

55 views
Skip to first unread message

Pablo Vidaurri

unread,
Apr 16, 2025, 3:39:22 PM4/16/25
to CAS Community
I'm delegating login to Azure B2C.

When a user is delegated to the B2C login page, he may wait for a few minutes for whatever reason. Finally he enters his credentials but on redirect back to CAS, gets an error message with red background:

 Application Not Authorized to Use CAS

The application you attempted to authenticate to is not authorized to use CAS. This usually indicates that the application is not registered with CAS, or its authorization policy defined in its registration record prevents it from leveraging CAS functionality, or it's malformed and unrecognized by CAS. Contact your CAS administrator to learn how you might register and integrate your application with CAS.


Is there a way to catch this and display a different message?


-psv

Ray Bon

unread,
Apr 16, 2025, 10:35:16 PM4/16/25
to cas-...@apereo.org
Pablo,


We use src/main/resources/custom_messages.properties with our overrides.

Ray

From: cas-...@apereo.org <cas-...@apereo.org> on behalf of Pablo Vidaurri <psvid...@gmail.com>
Sent: April 16, 2025 11:45
To: CAS Community <cas-...@apereo.org>
Subject: [cas-user] delegated login, user waits too long, CAS error on redirect
 
--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/18e87b7c-4a86-4cef-b6c5-594f379d4f64n%40apereo.org.

Pablo Vidaurri

unread,
Apr 17, 2025, 1:16:12 AM4/17/25
to CAS Community, Ray Bon
That is an obvious way to handle it!

Thanks!
-psv

Reply all
Reply to author
Forward
0 new messages