How can I register my webapp in CAS services manag

2019-02-21 04:47发布

问题:

My School want to implement a CAS service, I did the most of the configuration, but I need to register the webapp, How can I register the webapp in CAS services management? Or if you have some samples that can help me, I'll be really grateful.

回答1:

I have tried using cas management app is version 4.2.x. I am not sure what version you are trying to use.

Although I was able to build the cas management app successfully and make it up and running, for some reason configuring the service in this management app did not work for me.

Alternatively, I found another way to make it for work me. You can register your apps in a JSON file in your cas server web application (note: Not the cas management webapp) itself in the following location, /WEB-INF/classes/services

Follow the following steps,

  • You will see default services in this location. Copy and create a new json file for your service.
  • The file name is made up of service Name and unique id (you can choose a unique id of your choice)
  • Inside the file, you need to configure the service URL, id that you gave in the file name, name of the service application, logout service url, etc...)
  • restart the cas server. Service should be ready for use