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...
Am Dienstag, 21. Februar 2017 16:26:19 UTC+1 schrieb Udo: > > 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 > -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4a04e531-8562-4045-9bf6-66005ea9ce41%40apereo.org.
