CAS 5.0.3: Login denied after adding cas-server-support-oauth-webflow depedency

165 views
Skip to first unread message

Udo

unread,
Feb 21, 2017, 10:26:19 AM2/21/17
to CAS Community
Hi,

I have a CAS 5.0.3 maven overlay that includes one RegexRegisteredService and one SamlRegisteredService, and dependencies for cas-server-support-ldap, cas-server-support-basic and cas-server-support-saml-idp. It is deployed in an external Tomcat 8. This works as expected and I can successfully log in my services that use CAS protocol and SAML2.
As soon as I add the dependency for cas-server-support-oauth-webflow in the pom, I can no longer log in my two services. When I'm redirected to CAS, I immediately get an error instead of the login form. I have not changed anything in the service registry.

The log message for CAS protocol:
2017-02-21 15:57:57,030 WARN [org.apereo.cas.web.flow.ServiceAuthorizationCheck] - <Service Management: missing service. Service [<my service URL>] is not found in service registry.>

The log message for the SAML service
2017-02-21 16:00:04,659 WARN [org.apereo.cas.support.saml.web.idp.profile.SSOPostProfileHandlerController] - <[spring.test] is not found in the registry or service access is denied. Ensure service is registered in service registry>

As soon as I remove the  cas-server-support-oauth-webflow dependency, login works again.

Is it not possible to use OAuth2 in parallel with other protocols?

Any help appreciated,
Udo

Udo

unread,
Feb 22, 2017, 7:02:14 AM2/22/17
to CAS Community
What solves the issue is to add cas-server-support-json-service-registry dependency to the pom. Not sure why the default registry does not work with OAuth2...

Reply all
Reply to author
Forward
0 new messages