Hi, I have a CAS server with a service json that catches all incoming
requests looking like this:
*{*
* "@class": "org.apereo.cas.services.RegexRegisteredService",*
* "serviceId": "^(https|http)://.*",*
* "name": "HTTPS and HTTP",*
* "id": 20000001,*
* "description": "This service definition authorizes all application urls
that support HTTPS and HTTP protocols.",*
* "attributeReleasePolicy" : {*
* "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"*
* },*
* "evaluationOrder": 201,"accessStrategy" : {*
* "@class" :
"org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",*
* "enabled" : true,*
* "ssoEnabled" : true,*
* "requiredAttributes" : {*
* "@class" : "java.util.HashMap",*
* "access_app_list" : [ "java.util.HashSet", [ "some-app" ] ]*
* }*
* }*
*}*
Where *access_app_list* is retrieved from a DB. My question, is there a
built-in variable that I can put instead of *some-app* that contains the
domain of the service accessing CAS? Or do I need to use a groovy script
for this? And if groovy is needed, any pointers on how I could do that?
I would like to do this so I don't have to define a different service json
for every app that needs to authenticate against CAS.
--
- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fbc184d6-353a-4aaa-887f-acc77e1d4264n%40apereo.org.