Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-24 Thread Andy Ng
Oops maybe I remember incorrectly about the service directory. Anyway, glad to help:D Cheers! -Andy -- - 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

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-24 Thread Pedro Rosas
Hi Andy and all, Thank you very much for your support, it was precious to me! I finally got it up and running. I probably messed up something, cause I repeated the whole process from scratch and it is working now. I got the myservice-1001.json under the C:/etc/cas/services directory. Best

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-23 Thread Andy Ng
The service file should be: src/main/resources/service/myservice-1001.json -- - 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

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-23 Thread Pedro Rosas
Additionally, I forgot to mention that I have added to the "C:\etc\cas\services" folder the "myservice-1001.json" file with the following content: { "@class" :"org.apereo.cas.services.RegexRegisteredService", "serviceId" : "^https://www.example.com;, "name" :

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-23 Thread Pedro Rosas
Hi Andy, I am using tomcat on Windows 10. I'm also using the Netbeans IDE to load the cas overlay (maven version). I created the C:\etc\cas\config and I have put there the cas.properties, with the following content: cas.server.name: https://cas.example.org:8443 cas.server.prefix:

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-23 Thread Andy Ng
Hi Pedro, I'm editing the cas.properties provided by the CAS overlay template. Do you mean that this is the wrong place to edit the cas.properties? > Yes, it is the wrong place to edit the cas.properties Should I manually copy the cas.properties file to the "target" folder? (I'm using tomcat).

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-23 Thread Pedro Rosas
Hi Andy, I'm editing the cas.properties provided by the CAS overlay template. Do you mean that this is the wrong place to edit the cas.properties? I searched for a cas.properties file on the "target" folder, but there is no such file there. Should I manually copy the cas.properties file to the

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-23 Thread Andy Ng
Hi Pedro, To see whether or not your service is being loaded, turn on CAS debugger mode and look at the logs. The (cas.serviceRegistry.x.location) is *based on CAS version*, so you should look for the config for your CAS version: cas.serviceRegistry.json.location=file:/etc/cas/services

RE: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-22 Thread Doug Campbell
if it is possible. From: cas-user@apereo.org [mailto:cas-user@apereo.org] On Behalf Of Pedro Rosas Sent: Saturday, September 22, 2018 10:17 PM To: CAS Community Subject: Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.??? Hi Doug, Thanks for your quick

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-22 Thread Pedro Rosas
and that is what I have and I seem > to remember this property name changing recently and this tripping me up. > Give it a try. > > > > Doug > > > > *From:* cas-...@apereo.org [mailto:cas-...@apereo.org > ] *On Behalf Of *Pedro Rosas > *Sent:* Saturday, September

RE: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-22 Thread Doug Campbell
recently and this tripping me up. Give it a try. Doug From: cas-user@apereo.org [mailto:cas-user@apereo.org] On Behalf Of Pedro Rosas Sent: Saturday, September 22, 2018 12:39 PM To: CAS Community Subject: Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2018-09-22 Thread Pedro Rosas
Hello, I'm using the latest version of CAS at the moment (5.3.3) and I want to customize the UI of the login screen. I followed the approach defined here https://apereo.github.io/2018/06/10/cas-userinterface-customizations on the "Themes" section. Summing up, these are the steps that I

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2017-09-05 Thread Doug C
Thanks! That is really odd. I tried that earlier but couldn't get it to work so I just reverted to storing it in the classpath. Maybe I just messed something up though when I was testing as I am testing a lot of things that are new to me as I try to update my very old CAS 3.x to 5.1.3.

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2017-09-05 Thread David Curry
You're mixing two different things. The bug fix (more of a feature enhancement) you describe was to the automatic service registry initialization feature described here: https://apereo.github.io/cas/development/installation/InMemory-Service-Management.html#auto-initialization That's not (at least

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2017-09-05 Thread Doug C
Actually, when I did that, it did not work. This appears to be a bug that has been fixed in CAS 5.2.0 RC2 as mentioned at https://apereo.github.io/2017/08/04/520rc2-release/#minors. "Service registry initialization from JSON is now able to honor service definitions found at the path specified

Re: [cas-user] Re: CAS5.1 ,Application Not Authorized to Use CAS , no service registry issue.???

2017-09-05 Thread David Curry
To use a separate JSON registry (e.g., /etc/cas/services/), you have to add the cas-server-support-json-service-registry dependency to pom.xml and rebuild the server. Then you can set cas.serviceRegistry.config.location:file:/etc/cas/services and put your service declarations in there.