CAS 5.3 OAuth2 Delegated Authentication error Client not found

19 views
Skip to first unread message

mohsen saeedi

unread,
Jul 19, 2023, 4:58:13 PM7/19/23
to CAS Community
Hello,

I'm using CAS 5.3 latest version. I want to delegate authentication to
an external oauth2 identity server. I added new configuration key
starts with cas.authn.pac4j.oauth2[0] for authUrl, tokenUrl,
ProfileUrl and ... . also defined clientName (for example OAuth20).
Everything works fine but when user return back to cas, it prints
error: 2023-07-17 03:57:35,221 ERROR
[org.apereo.cas.web.flow.DelegatedClientAuthenticationAction] - <No
client found for name: OAuth20?code=74486072882b4f6b896b4476a11f56f9>
org.pac4j.core.exception.TechnicalException: No client found for name:
OAuth20?code=74486072882b4f6b896b4476a11f56f9
I read docs and blog posts and everything was on the internet about
this subject without any success. anyone can help me? I can't change
this version and switch to 6.x . it is not possible on short time.

Mohsen Saeedi

mohsen saeedi

unread,
Jul 22, 2023, 12:34:11 AM7/22/23
to CAS Community, mohsen saeedi
Extra information is needed to answer this question?

nobody is here to help me?

Best Regards

Łukasz Woźniak

unread,
Jul 24, 2023, 4:25:54 AM7/24/23
to cas-...@apereo.org, mohsen saeedi
Many years ago I have been using CAS with version 5.3, but there was many errors with delegated authentication. I suggest You to upgrade to version 6.6.x

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/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 on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/08d73395-824d-42d1-9354-9c90e811aabcn%40apereo.org.

Mohsen Saeedi

unread,
Jul 24, 2023, 12:40:34 PM7/24/23
to Łukasz Woźniak, cas-...@apereo.org
Thanks Łukasz
It is not possible to update in short time. I will test cas 6.6.x too. I have another problem. When it try to check Token, does not send cilent_id and client_secret in www-form-data. the external idp that we are using need this field to pass. Do you have any idea to send these fields?
--
Seyyed Mohsen Saeedi
سید محسن سعیدی

Ray Bon

unread,
Jul 24, 2023, 12:49:35 PM7/24/23
to cas-...@apereo.org, mohsen...@gmail.com
Mohsen,

Version 5 is very old. If the problem is in cas, there may be no one that can help.
If the log says that client name was not found (serviceId in service definition). Then check your service definition. serviceId can be a regex.

Ray

On Fri, 2023-07-21 at 21:08 -0700, mohsen saeedi wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Reply all
Reply to author
Forward
0 new messages