Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Configuration files are not being found - Application Not Authorized to Use CAS #21

Open
JohnnyZ opened this issue May 24, 2018 · 0 comments

Comments

@JohnnyZ
Copy link

JohnnyZ commented May 24, 2018

Using the most up-to-date posted code to GitHub. I am trying to allow access for my server to be authorized, or any host for my testing matters, and I do not believe my configurations are being recognized. I have logged into the docker image and saw that the files are in fact copied to /etc/. Thank you in advance.

2018-05-24 20:06:28,696 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration directory [/etc/cas/config] is not a directory or cannot be found at the specific path>

2018-05-24 20:13:58,299 WARN [org.apereo.cas.web.flow.ServiceAuthorizationCheck] - <No service definitions are found in the service manager. Service [http://localhost:8001/accounts/login/?next=%2F] will not be automatically authorized to request authentication.> 2018-05-24 20:13:58,311 WARN [org.apereo.cas.services.web.RegisteredServiceThemeResolver] - <No registered service is found to match [AbstractWebApplicationService(id=http://localhost:8001/accounts/login/?next=%2F, originalUrl=http://localhost:8001/accounts/login/?next=%2F, artifactId=null, principal=null, source=service, loggedOutAlready=false, format=XML, attributes={})] or access is denied. Using default theme [cas-theme-default]> 2018-05-24 20:13:58,351 WARN [org.apereo.cas.services.web.RegisteredServiceThemeResolver] - <No registered service is found to match [AbstractWebApplicationService(id=http://localhost:8001/accounts/login/?next=%2F, originalUrl=http://localhost:8001/accounts/login/?next=%2F, artifactId=null, principal=null, source=service, loggedOutAlready=false, format=XML, attributes={})] or access is denied. Using default theme [cas-theme-default]> 2018-05-24 20:14:13,825 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].>

/etc/cas/config/cas.properties
cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas
logging.config: file:/etc/cas/config/log4j2.xml
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.json.location:file:/etc/cas/services

/etc/cas/services/all.json
{
"@Class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https|http)://.*",
"name" : "HTTPS and HTTP",
"id" : 10000001,
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant