Re: [cas-user] Unauthorized Service Access. Service [] is not found in service registry

2020-09-25 Thread Christophe Delcour
thank you for the quick response ;-)
here are the modules added in the build.gradle:
implementation 
"org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
implementation 
"org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
implementation "org.apereo.cas: 
cas-server-webapp${project.appServer}:${casServerVersion}"

and cas.serviceRegistry.json.location=file:///etc/cas/services is correctly 
configured:

cas.properties:
cas.server.name=https://belenios.eca.eu
cas.server.prefix=${cas.server.name}/cas

logging.config=file:/etc/cas/config/log4j2.xml
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.json.location=file:///etc/cas/services

cas.authn.accept.users=
### Connexion LDAP
cas.authn.ldap\[0\].providerClass=org.ldaptive.provider.unboundid.UnboundIDProvider
cas.authn.ldap\[0\].type=AUTHENTICATED
cas.authn.ldap\[0\].useSsl=true
...

I have activated the debug and here are the logs 
2020-09-25 13:02:49,081 INFO 
[org.apereo.cas.services.AbstractServicesManager] - 
2020-09-25 13:03:01,934 DEBUG 
[org.apereo.cas.ticket.registry.AbstractMapBasedTicketRegistry] - 
25-Sep-2020 13:03:02.176 WARNING [https-jsse-nio-443-exec-6] 
javax.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver.log
 
javax.persistence.spi::No valid providers found.
2020-09-25 13:03:02,207 DEBUG 
[org.apereo.cas.web.flow.login.InitialFlowSetupAction] - 
2020-09-25 13:03:02,208 DEBUG 
[org.apereo.cas.web.flow.login.InitialFlowSetupAction] - 
2020-09-25 13:03:02,215 DEBUG 
[org.apereo.cas.web.flow.login.InitialFlowSetupAction] - https://belenios.eca.eu:8001/auth/cas?state=oxnzF3WnHV7qAn]>
2020-09-25 13:03:02,218 WARN 
[org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - 

2020-09-25 13:03:04,029 DEBUG 
[org.apereo.cas.web.view.CasReloadableMessageBundle] - 
2020-09-25 13:03:04,030 DEBUG 
[org.apereo.cas.web.view.CasReloadableMessageBundle] - 
2020-09-25 13:03:04,031 DEBUG 
[org.apereo.cas.web.view.CasReloadableMessageBundle] - 
2020-09-25 13:03:04,039 DEBUG 
[org.apereo.cas.web.view.CasReloadableMessageBundle] - 
2020-09-25 13:03:04,822 DEBUG 
[org.apereo.cas.ticket.registry.AbstractMapBasedTicketRegistry] - 
2020-09-25 13:03:05,205 DEBUG 
[org.apereo.cas.ticket.registry.AbstractMapBasedTicketRegistry] - 
2020-09-25 13:03:07,952 INFO 
[org.apereo.cas.services.AbstractServicesManager] - 
2020-09-25 13:03:17,974 INFO 
[org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0] 
expired tickets removed.>
2020-09-25 13:03:17,975 DEBUG 
[org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - 



Le vendredi 25 septembre 2020 à 12:04:21 UTC+2, Marc Maurice a écrit :

> You need that in build.gradle :
>
> implementation 
>
> "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
>
> And that in cas.properties :
>
> cas.service-registry.json.location=file:///etc/cas/services
>
>
> Can you check?
>
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/904b6923-0f23-4bbf-a835-1abe66300f79n%40apereo.org.


[cas-user] Unauthorized Service Access. Service [] is not found in service registry

2020-09-25 Thread Christophe Delcour
Hello,
I am trying to install Apereo CAS 6.3 under Tomcat 9 but I have a problem. 
My service is not recognised and in my logs, I have these 2 lines of 
warning:
 
WARNING [https-jsse-nio-443-exec-4] 
javax.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver.log
 
javax.persistence.spi::No valid providers found.

WARN [org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - 


My service defined  in /etc/cas/services/ is well recognised:
INFO [org.apereo.cas.services.AbstractServicesManager] - 

I use the default persistent storage (in memory).

Detail of my service:
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https)://belenios.eca.eu/.*",
"name" : "Belenios",
"id" : 1601021856,
"evaluationOrder" : 9
}

Does anyone have any ideas?

Thank you,

Christophe


-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/94943d22-fcc8-4845-a0e9-22da69d60a79n%40apereo.org.