I would try a real url in the service Id, and I think that the id inside the
file is supposed to match the id in the file name.
________________________________
From: [email protected] [[email protected]] on behalf of Pablo Vidaurri
[[email protected]]
Sent: Friday, March 29, 2019 3:12 PM
To: CAS Community
Subject: [cas-user] New install of Cas 6.1.0, json service not working
I added below dependency:
compile
"org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"
I'm testing on windows at the moment and added the following to cas.properties
in d:/etc/cas/config
cas.serviceRegistry.json.location: file:D:/etc/cas/services
cas.serviceRegistry.initFromJson: true
I have following wildcard service Id in
D:/etc/cas/services/localhost-2019030300010.json:
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : ".*",
"name" : "localhost",
"id" : 1,
"evaluationOrder" : 1,
"accessStrategy" : {
"@class" : "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled" : true,
"ssoEnabled" : true
},
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
}
}
I fire up my casified application and point it to my new cas install.
I get redirected to cas for login:
https://localhost:8443/auth/login?TARGET=https%3A%2F%2Flocalhost%3A9443%2Fsample%2Fsecured%2Findex.jsp
I am able to log into this new cas instance but it does not redirect me back to
my application. It remains on the cas "Log In Successful" page with a message
"...you are seeing this page because CAS does not know about your target
destination and how to get you there..."
What am I missing here?
-psv
--
- 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]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e3a8b049-8ea5-436d-8b86-cedadcd0f473%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/e3a8b049-8ea5-436d-8b86-cedadcd0f473%40apereo.org?utm_medium=email&utm_source=footer>.
--
- 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/0A9BC9099B13904AA1708A7F1B6C8404E6CA7AEC%40Ntsrv75.int.oru.edu.