cas5.1.1 + cas-services-management-overlay

622 views
Skip to first unread message

Jérémie Pilette

unread,
Aug 27, 2017, 12:57:53 PM8/27/17
to CAS Community
Hello,

I installed "cas-services-management-overlay".
When I connect to the url "https://myurl/cas-management", I have the page that indicate :

Application Not Authorized to Use CAS

The services registry of CAS is empty and has no service definitions. Applications that wish to authenticate with CAS must explicitly be defined in the services registry.


Could you help me please ?

==management.properties==
# CAS server that management app will authenticate with
# This server will authenticate for any app (service) and you can login as casuser/Mellon
cas.server.name: https://myurl
cas.server.prefix: https://myurl/cas

cas.mgmt.adminRoles=ROLE_ADMIN
cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties

# Update this URL to point at server running this management app
cas.mgmt.serverName=https://myurl

server.context-path=/cas-management
server.port=443

spring.thymeleaf.mode=HTML
logging.config=file:/etc/cas/config/log4j2-management.xml

==cas.properties==
cas.server.name=https://myurl
cas.server.prefix=https://myurl/cas

cas.adminPagesSecurity.ip=127\.0\.0\.1
logging.config=file:/etc/cas/config/log4j2.xml
# cas.serviceRegistry.config.location: classpath:/services
cas.authn.accept.users= 

Thanks a lot

Jérémie

sesharaju sv

unread,
Aug 28, 2017, 4:20:05 AM8/28/17
to cas-...@apereo.org
Hello Jérémie

I think you have missed to configure the cas-management application in
CAS Server services. Please do add the CAS Management application URL
in your services registry and try log you should be able to login.

Thanks
Seshu
> --
> - 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/dec52428-deaa-4913-ade8-d730f64edd8b%40apereo.org.



--
Venkata S Sadhu (Seshu)
India (Mobile) : +91 7032638062 (WhatsApp)
INDIA

Jérémie Pilette

unread,
Aug 29, 2017, 8:16:05 AM8/29/17
to CAS Community
Hello Seshu,
thank you for your response.

I begin with CAS Server and I don't know all we need to know to install a CAS server.

Could you tell me where I have to add the CAS Management application URL (Which file) ? Where is the CAS Server Services ?

Thanks a lot,

Jérémie

Mallory, Erik

unread,
Aug 29, 2017, 9:48:05 AM8/29/17
to cas-...@apereo.org

Jérémie,

Provided you have not configured  persistent service storage with jpa, ldap, etc…. you can find an example service definition file

At this location <cas-overlay-directory> target/war/work/org.apereo.cas/cas-server-webapp-tomcat/WEB-INF/classes/services/HTTPSandIMAPS-10000001.json

For example,

{

  "@class" : "org.apereo.cas.services.RegexRegisteredService",

  "serviceId" : "^(https|http)://cas-server.some.edu/cas-management.*",

  "name" : "CAS Services",

  "id" : 10000004,

  "description" : "This service definition authorizes the cas services management application.",

  "evaluationOrder" : 10000

}

I’ve made sweeping assumptions here,  but hopefully this will give you enough to get going.

https://apereo.github.io/cas/5.1.x/installation/JSON-Service-Management.html

 

Good luck!

 

Erik Mallory

Server Analyst 

Wichita State University

Jérémie Pilette

unread,
Aug 29, 2017, 10:57:43 AM8/29/17
to CAS Community, Erik.M...@wichita.edu
Hello Erik,

thank you very much, it's good.
My CAS server works now.

Now I need to study the cas-services-management.

Jérémie

Jérémie Pilette

unread,
Sep 4, 2017, 11:50:17 AM9/4/17
to CAS Community, Erik.M...@wichita.edu
Hello,
do you know how to connect for the first time to the service-cas-management?

What is the login and password of the administrator by default ?
Thank you,

Jérémie
Reply all
Reply to author
Forward
0 new messages