<dependency> <groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-rest-tokens</artifactId>
<version>${cas.version}</version>
</dependency>POST /cas/v1/tickets HTTP/1.0
username=battags&password=password&token=true&additionalParam1=paramvalueUnauthorized Service Access. Service [] is not found in service registry.val registeredService = payload.getRegisteredService() == null
? locateRegisteredService(serviceAudience)
: payload.getRegisteredService();
RegisteredServiceAccessStrategyUtils.ensureServiceAccessIsAllowed(registeredService);
which calls locateRegisteredService with serviceAudience -> as your cas instance (http://localhost:8080/cas). And that is not registered as a service in my case, than
RegisteredServiceAccessStrategyUtils.ensureServiceAccessIsAllowed(registeredService); throws the exception. My question is, should we than inject our cas instance as a service too? Because inside the DefaultServicesManager class, orderedServices
has http://localhost:8095/bouncer/oauth2.0/callbackAuthorize.* which makes me thing like should not there be a service also for CAS protocol too?
--
- 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/8d49ac0b-62c2-49a1-9226-bad6b34571e1%40apereo.org.
Core dev Misagh Moayyed mentioned that this is a bug: https://stackoverflow.com/questions/59368162/cas-rest-protocol-does-not-work-without-generic-service-definition/So a solution is to register your CAS instance(s) as a service until the bug is resolved. (In case you don't use generic service regex which was in my case, so CAS instance was not matching as registered service, which was throwing exception)
--
- 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/368495d1-bc93-4283-a3f1-75f9013e6837%40apereo.org.