No service resolution when accessing through a reverse-proxy

23 views
Skip to first unread message

Frédéric PRACA

unread,
Jul 12, 2021, 8:46:27 AM7/12/21
to CAS Community
Hi,
I have a CAS version 6.3 which almost works correctly but I have a little problem appearing only when using a reverse-proxy.
In fact, when working with Apache through AJP, I receive the following message in CAS logs :
[org.apereo.cas.authentication.principal.WebApplicationServiceFactory] - <No service is specified in the request. Skipping service creation>

The consequence is that the theme associated with my services is not correctly defined.

Using the same configuration without the reverse-proxy, the service is correctly resolved.

Has anyone seen this before ?

Best regards

Fred

He vincent

unread,
Jul 12, 2021, 9:09:18 PM7/12/21
to CAS Community, Frédéric PRACA

I am using Nginx for both CAS and various service, please make sure to configure correct serviceId for the reverse-proxy. e.g. the URL may be changed.

Frédéric PRACA

unread,
Jul 13, 2021, 6:03:51 AM7/13/21
to CAS Community, He Vincent, Frédéric PRACA
Hi,
In fact, I changed to a quite open service ID :)
  "serviceId" : "^http[s|]://.+"

But now I wonder how it's seen from CAS point of view as the reverse proxy is using AJP...

Regards

Fred
Reply all
Reply to author
Forward
0 new messages