I’m pretty sure the serviced is supposed to be a regular expression, no?. * after an ‘h’ means repeat the ‘h’. Put ‘.*’ and you’ll repeat anything, but that wouldn’t be what you want either, as that would allow any domain with a DNS prefix of ‘regent-team.myfresh’, to authenticate against your CAS instance.
--
- 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/BL0PR10MB29952DEBE257C8F1901C6B25D9709%40BL0PR10MB2995.namprd10.prod.outlook.com.
This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed.---
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/A96F1C24-41F0-47CF-A721-5B6E817C76DC%40athabascau.ca.
Oops, I had meant to paste this. This should allow anything with domain.com and prefix regent-team.myfresh to authenticate against your CAS server.
^(https|http):\/\/regent-team\.myfresh.*domain\.com(:[0-9]{1,5})?\/.*$"
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/A96F1C24-41F0-47CF-A721-5B6E817C76DC%40athabascau.ca.
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
--
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4a8f6cf1fd9b9c08558c4360518f35e25abf90f5.camel%40uvic.ca.
It matches this…
https://regex101.com/r/evGIgs/1
You also need to make sure the ‘id’ of each service definition don’t conflict.
Also, according to the docs, . has to be doubling escaped, so perhaps ‘\\.’ Rather than ‘\.’ ??
https://apereo.github.io/cas/5.3.x/installation/JSON-Service-Management.html
Escaping Characters
Please make sure all field values in the JSON blob are correctly escaped, specially for the service id. If the service is defined as a regular expression, certain regex constructs such as "." and "\d" need to be doubly escaped.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/BL0PR10MB299574EB33769F3D3240FDFBD9709%40BL0PR10MB2995.namprd10.prod.outlook.com.