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.


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

2020-09-25 Thread Marc MAURICE

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/dd4ad469-8ca8-6cbc-f982-1bff0b5b3d25%40clever-age.com.


[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.


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

2019-06-28 Thread Andy Ng
Please show us the debug log and your service json, or else really hard to 
help you debug:

To enable debug log, see 
https://apereo.github.io/cas/5.3.x/installation/Troubleshooting-Guide.html#review-logs

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 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/b4e0d1b1-e720-4751-8fd8-0a9c04abc026%40apereo.org.


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

2019-06-27 Thread Trần Quang Long
when access 
to 
https://localhost:9443/oauth2.0/accessToken?grant_type=password_id=1961521961528350196152786046=xxx=123456789.
 
i have got an error "Access Denied

You do not have permission to view this page."




On Friday, June 28, 2019 at 11:21:17 AM UTC+7, Tamnguyen wrote:
>
> Sorry for mistake : cas.serviceRegistry.initFromJson=true
> cas.serviceRegistry.json.location=file:/etc/cas/services
>
> On Fri, Jun 28, 2019 at 11:08 AM Tam Nguyen  > wrote:
>
>> You try changed : serviceRegistry.json.location=classpath:/etc/cas/services 
>>
>>
>> serviceRegistry.json.location=/etc/cas/services
>>
>> And created services : 
>> https://apereo.github.io/cas/6.0.x/services/Configuring-Service-Access-Strategy.html
>>
>>
>>
>> On Fri, Jun 28, 2019 at 10:52 AM Trần Quang Long > > wrote:
>>
>>> 2019-06-28 10:47:53,503 INFO 
>>> [org.apereo.cas.support.events.listener.DefaultCasEventListener] - >> to process requests @ [2019-06-28T03:47:53.500Z]>
>>> 2019-06-28 10:48:23,403 INFO 
>>> [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0] 
>>> expired tickets removed.>
>>> 2019-06-28 10:48:59,388 WARN 
>>> [org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - 
>>> 
>>>
>>>
>>>
>>> serviceRegistry.watcherEnabled=true
>>> serviceRegistry.repeatInterval=12
>>> serviceRegistry.startDelay=15000
>>> serviceRegistry.initFromJson=true
>>> serviceRegistry.json.location=classpath:/etc/cas/services
>>>
>>>
>>> anybody please help me? thanks
>>>
>>> -- 
>>> - 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-...@apereo.org .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/34335fd4-abbf-46f6-b11e-42184f6cf437%40apereo.org
>>>  
>>> 
>>> .
>>>
>>

-- 
- 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/73aadee7-5d01-49a9-ad7a-2e02cb1afed9%40apereo.org.


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

2019-06-27 Thread Tam Nguyen
Sorry for mistake : cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.json.location=file:/etc/cas/services

On Fri, Jun 28, 2019 at 11:08 AM Tam Nguyen  wrote:

> You try changed : serviceRegistry.json.location=classpath:/etc/cas/services
>
>
> serviceRegistry.json.location=/etc/cas/services
>
> And created services : 
> https://apereo.github.io/cas/6.0.x/services/Configuring-Service-Access-Strategy.html
>
>
>
> On Fri, Jun 28, 2019 at 10:52 AM Trần Quang Long 
> wrote:
>
>> 2019-06-28 10:47:53,503 INFO
>> [org.apereo.cas.support.events.listener.DefaultCasEventListener] - > to process requests @ [2019-06-28T03:47:53.500Z]>
>> 2019-06-28 10:48:23,403 INFO
>> [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0]
>> expired tickets removed.>
>> 2019-06-28 10:48:59,388 WARN
>> [org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] -
>> 
>>
>>
>>
>> serviceRegistry.watcherEnabled=true
>> serviceRegistry.repeatInterval=12
>> serviceRegistry.startDelay=15000
>> serviceRegistry.initFromJson=true
>> serviceRegistry.json.location=classpath:/etc/cas/services
>>
>>
>> anybody please help me? thanks
>>
>> --
>> - 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/34335fd4-abbf-46f6-b11e-42184f6cf437%40apereo.org
>> 
>> .
>>
>

-- 
- 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/CACF8bUvCYF-uOpDqz%3D9FTjxykfJE0A7E-TP%2Bi74w6euwtkJ4dA%40mail.gmail.com.


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

2019-06-27 Thread Tam Nguyen
You try changed : serviceRegistry.json.location=classpath:/etc/cas/services

serviceRegistry.json.location=/etc/cas/services

And created services :
https://apereo.github.io/cas/6.0.x/services/Configuring-Service-Access-Strategy.html



On Fri, Jun 28, 2019 at 10:52 AM Trần Quang Long 
wrote:

> 2019-06-28 10:47:53,503 INFO
> [org.apereo.cas.support.events.listener.DefaultCasEventListener] -  to process requests @ [2019-06-28T03:47:53.500Z]>
> 2019-06-28 10:48:23,403 INFO
> [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0]
> expired tickets removed.>
> 2019-06-28 10:48:59,388 WARN
> [org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] -
> 
>
>
>
> serviceRegistry.watcherEnabled=true
> serviceRegistry.repeatInterval=12
> serviceRegistry.startDelay=15000
> serviceRegistry.initFromJson=true
> serviceRegistry.json.location=classpath:/etc/cas/services
>
>
> anybody please help me? thanks
>
> --
> - 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/34335fd4-abbf-46f6-b11e-42184f6cf437%40apereo.org
> 
> .
>

-- 
- 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/CACF8bUu-sHAeVcRpHGAmmG9%2BCRDgfdENoy6S4UTso0reaaf_Jw%40mail.gmail.com.


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

2019-06-27 Thread Trần Quang Long
2019-06-28 10:47:53,503 INFO 
[org.apereo.cas.support.events.listener.DefaultCasEventListener] - 
2019-06-28 10:48:23,403 INFO 
[org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0] 
expired tickets removed.>
2019-06-28 10:48:59,388 WARN 
[org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - 




serviceRegistry.watcherEnabled=true
serviceRegistry.repeatInterval=12
serviceRegistry.startDelay=15000
serviceRegistry.initFromJson=true
serviceRegistry.json.location=classpath:/etc/cas/services


anybody please help me? thanks

-- 
- 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/34335fd4-abbf-46f6-b11e-42184f6cf437%40apereo.org.


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

2018-11-24 Thread Unauthorized Service Access. Service is not f
2018-11-24 15:13:49,512 WARN 
[org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - 

2018-11-24 15:13:50,854 WARN 
[org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - 


cas.serviceRegistry.watcherEnabled=true
cas.serviceRegistry.repeatInterval=12
cas.serviceRegistry.startDelay=15000
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.json.location=file:/usr/local/tomcat/etc/cas/services

cas.serviceRegistry.jpa.url=jdbc:postgresql://x/cas
cas.serviceRegistry.jpa.user=xxx
cas.serviceRegistry.jpa.password=
cas.serviceRegistry.jpa.ddlAuto=update
cas.serviceRegistry.jpa.driverClass=org.postgresql.Driver
cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.PostgreSQL95Dialect
cas.serviceRegistry.jpa.autocommit=true


please help me

-- 
- 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/ec34fb43-c925-4cf1-8391-4bc78d4fb1d5%40apereo.org.