Re: [cas-user] rebuilding old cas 3.4.11 deployment: error

2020-09-25 Thread Ray Bon
Baron,

When you say 'update config', do you mean the build config or the cas 
properties?
For the latter you could 'edit on the server'.

The missing dependenc[y|ies] may be the result of things like beta packages 
being remove or moved to different repos.
You can find the package somewhere on the internet:
1.  install it locally in ~/.m2
2.  include opensaml-1.1b and add the remote repository to the project pom
3. use mvn dependency:tree to see what package is including it, add the 
 stanza to that packages' include dependency stanza) and then include 
opensaml-1.1 that does exist (and hope it works)

If SimpleTest... is no longer part of cas, perhaps you could create an 
authentication handler that would perform this work.
See, 
https://apereo.github.io/cas/6.1.x/installation/Configuring-Custom-Authentication.html
 and https://apereo.github.io/cas/6.1.x/installation/Groovy-Authentication.html

Ray

On Fri, 2020-09-25 at 13:37 -1000, Baron Fujimoto wrote:

Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.



I know this is ancient, but we have an instance of CAS 3.4.11 deployed for a 
specialized internal use[*]. The problem is, I recently decided to update its 
config after not touching it for a very long time, but when I ran 'mvn clean 
package' in my maven overlay work directory it fails with error:


ERROR] Failed to execute goal on project local-cas: Could not resolve 
dependencies for project 
edu.hawaii.cas-noauthn:local-cas:war:uh-cas-noauthn-1.0-3.4.11: Failed to 
collect dependencies for [org.jasig.cas:cas-server-webapp:war:3.4.11 (runtime), 
org.jasig.cas:cas-server-support-generic:jar:3.4.11 (runtime), 
org.jasig.cas:cas-server-support-ldap:jar:3.4.11 (compile), 
commons-pool:commons-pool:jar:1.6 (compile), commons-dbcp:commons-dbcp:jar:1.4 
(runtime), org.hibernate:hibernate-entitymanager:jar:3.6.10.Final (compile), 
mysql:mysql-connector-java:jar:5.1.38 (compile), 
org.aspectj:aspectjweaver:jar:1.8.9 (compile)]: Failed to read artifact 
descriptor for org.opensaml:opensaml:jar:1.1b: Could not transfer artifact 
org.opensaml:opensaml:pom:1.1b from/to central (



http://repo.maven.apache.org/maven2

): Failed to transfer file:



http://repo.maven.apache.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom

. Return code is: 501, ReasonPhrase:HTTPS Required. -> [Help 1]


Any idea how to work around this? If I do a recursive grep in the work 
directory, I can't find either string, "repo.maven.apache.org" nor 
"opensaml-1.1b.pom". FWIW, even if I poke around at "



https://repo.maven.apache.org/maven2/org/opensaml/opensaml/

" I see a 1.1 dir, but no 1.1b. Hopefully this isn't just the first of many 
such errors.


[*] This instance of CAS is basically a stub service that will authenticate 
users successfully if the username and password strings are identical. This was 
accomplished using the SimpleTestUsernamePasswordAuthenticationHandler in 
deployerConfigContext.xml available in this version of CAS. If anyone has any 
pointers on how to achieve the same thing with CAS 5 that would also be helpful 
(and ultimately a better solution)


--

UH Information Technology Services : Identity & Access Mgmt, Middleware

minutas cantorum, minutas balorum, minutas carboratum desendus pantorum


--

- 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/20200925233615.putg7kqq5fl7bpxv%40MacBook-Pro.local

.

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca

I respectfully acknowledge that my place of work is located within the 
ancestral, traditional and unceded territory of the Songhees, Esquimalt and 
WSÁNEĆ Nations.

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

[cas-user] rebuilding old cas 3.4.11 deployment: error

2020-09-25 Thread Baron Fujimoto

I know this is ancient, but we have an instance of CAS 3.4.11 deployed for a 
specialized internal use[*]. The problem is, I recently decided to update its 
config after not touching it for a very long time, but when I ran 'mvn clean 
package' in my maven overlay work directory it fails with error:

ERROR] Failed to execute goal on project local-cas: Could not resolve dependencies 
for project edu.hawaii.cas-noauthn:local-cas:war:uh-cas-noauthn-1.0-3.4.11: Failed 
to collect dependencies for [org.jasig.cas:cas-server-webapp:war:3.4.11 (runtime), 
org.jasig.cas:cas-server-support-generic:jar:3.4.11 (runtime), 
org.jasig.cas:cas-server-support-ldap:jar:3.4.11 (compile), 
commons-pool:commons-pool:jar:1.6 (compile), commons-dbcp:commons-dbcp:jar:1.4 
(runtime), org.hibernate:hibernate-entitymanager:jar:3.6.10.Final (compile), 
mysql:mysql-connector-java:jar:5.1.38 (compile), 
org.aspectj:aspectjweaver:jar:1.8.9 (compile)]: Failed to read artifact descriptor 
for org.opensaml:opensaml:jar:1.1b: Could not transfer artifact 
org.opensaml:opensaml:pom:1.1b from/to central 
(http://repo.maven.apache.org/maven2): Failed to transfer file: 
http://repo.maven.apache.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom. 
Return code is: 501, ReasonPhrase:HTTPS Required. -> [Help 1]

Any idea how to work around this? If I do a recursive grep in the work directory, I can't find either string, 
"repo.maven.apache.org" nor "opensaml-1.1b.pom". FWIW, even if I poke around at 
"https://repo.maven.apache.org/maven2/org/opensaml/opensaml/; I see a 1.1 dir, but no 1.1b. 
Hopefully this isn't just the first of many such errors.

[*] This instance of CAS is basically a stub service that will authenticate 
users successfully if the username and password strings are identical. This was 
accomplished using the SimpleTestUsernamePasswordAuthenticationHandler in 
deployerConfigContext.xml available in this version of CAS. If anyone has any 
pointers on how to achieve the same thing with CAS 5 that would also be helpful 
(and ultimately a better solution)

--
UH Information Technology Services : Identity & Access Mgmt, Middleware
minutas cantorum, minutas balorum, minutas carboratum desendus pantorum

--
- 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/20200925233615.putg7kqq5fl7bpxv%40MacBook-Pro.local.


[cas-user] Re: Update a date database field on successful login

2020-09-25 Thread Marc MAURICE

Thanks mike.

This may not be the cleanest solution, but it works and will be easy to 
maintain accross CAS upgrades.


I just configured jdbc audit, and a trigger to update my users table.

delimiter //
CREATE TRIGGER COM_AUDIT_TRAIL_on_insert_update_users_datelastlogin
AFTER INSERT ON COM_AUDIT_TRAIL FOR EACH ROW
BEGIN
  IF NEW.AUD_ACTION = 'AUTHENTICATION_SUCCESS' THEN
    UPDATE users
  SET date_lastloginsuccess = NEW.AUD_DATE
  WHERE email = NEW.AUD_USER;
  END IF;
END;//


In cas.properties :

cas.audit.enabled=true
cas.audit.number-of-days-in-history=30

#cas.audit.jdbc.max-age-days=30
cas.audit.jdbc.url=${cas.authn.jdbc.query[0].url}
cas.audit.jdbc.dialect=${cas.authn.jdbc.query[0].dialect}
cas.audit.jdbc.user=${cas.authn.jdbc.query[0].user}
cas.audit.jdbc.password=${cas.authn.jdbc.query[0].password}
cas.audit.jdbc.driver-class=${cas.authn.jdbc.query[0].driver-class}


I wonder what is the purpose of max-age-days. Is it the same as 
nomber-of-days-in-history.


There is also a column-length=100 default property.

Anyone knowing whate those properties do ? If not I will review the 
source code.


documentation link here 




Thanks in advance,

Marc


Le 23/09/2020 à 15:06, mbar...@scad.edu a écrit :

Marc,

I'd suggest taking a look at JDBC Audits - 
https://apereo.github.io/cas/6.2.x/installation/Audits.html#database-audits


I won't do exactly what you want, but you'll be able to get a last 
login date from the table it creates.


Good luck!

-Mike

On Wednesday, September 23, 2020 at 4:06:10 AM UTC-4 Marc Maurice wrote:

Hello,

I'm using jdbc/mysql to authenticate my users.

I have a simple need : I want to add a last_login_date field,
updated at
each successful login

I want to be able to know if some accounts have not been used from a
very long time.

I red carefully the doc and reviewed the list of properties, but I
see
nothing about that.

Do I need to write some custom code ? Do you know what code or
class I
should extend ?

note: just updated my overlay to 6.2 successfully.

Thanks in advance,

Marc



--
- 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/df59036b-06fb-f6ff-3282-450ad738e877%40clever-age.com.


[cas-user] Audit jdbc mysql : syntax error at COM_AUDIT_TRAIL creation

2020-09-25 Thread Marc MAURICE

Hello all,

I found what may be a bug (in a library).

After configuring jdbc audit and starting cas for the first time, I got 
the following error (see full exception below).


Caused by: java.sql.SQLSyntaxErrorException: You have an error in your 
SQL syntax; check the manual that corresponds to your MariaDB server 
version for the right syntax to use near 'type=MyISAM' at line 11


engine=MyISAM should be used instead.


The workaround is easy : just run the SQL manually, replacing type= with 
engine= .



Let me know if you have any advice on how to report that. It's not very 
clear to me how to report issues on CAS.


Anyway, the workaround will be in mailing list archive.


Marc




2020-09-25 15:22:17,380 WARN 
[org.hibernate.tool.schema.internal.ExceptionHandlerLoggedImpl] - 
executing DDL "

    create table COM_AUDIT_TRAIL (
   id bigint not null auto_increment,
    AUD_ACTION longtext,
    APPLIC_CD varchar(255),
    AUD_CLIENT_IP varchar(255),
    AUD_DATE datetime not null,
    AUD_RESOURCE longtext,
    AUD_SERVER_IP varchar(255),
    AUD_USER longtext,
    primary key (id)
    ) type=MyISAM" via JDBC Statement>
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error 
executing DDL "

    create table COM_AUDIT_TRAIL (
   id bigint not null auto_increment,
    AUD_ACTION longtext,
    APPLIC_CD varchar(255),
    AUD_CLIENT_IP varchar(255),
    AUD_DATE datetime not null,
    AUD_RESOURCE longtext,
    AUD_SERVER_IP varchar(255),
    AUD_USER longtext,
    primary key (id)
    ) type=MyISAM" via JDBC Statement
    at 
org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlString(AbstractSchemaMigrator.java:559) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlStrings(AbstractSchemaMigrator.java:504) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.createTable(AbstractSchemaMigrator.java:277) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.internal.GroupedSchemaMigratorImpl.performTablesMigration(GroupedSchemaMigratorImpl.java:71) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.performMigration(AbstractSchemaMigrator.java:207) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:114) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:184) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:73) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:316) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:469) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1249) 
~[hibernate-core-5.4.16.Final.jar!/:5.4.16.Final]
    at 
org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) 
~[spring-orm-5.2.6.RELEASE.jar!/:5.2.6.RELEASE]
    at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) 
~[spring-orm-5.2.6.RELEASE.jar!/:5.2.6.RELEASE]
    at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391) 
~[spring-orm-5.2.6.RELEASE.jar!/:5.2.6.RELEASE]
    at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378) 
~[spring-orm-5.2.6.RELEASE.jar!/:5.2.6.RELEASE]
    at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) 
~[spring-orm-5.2.6.RELEASE.jar!/:5.2.6.RELEASE]
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) 
~[spring-beans-5.2.6.RELEASE.jar!/:5.2.6.RELEASE]
    at 

[cas-user] How to configure CAS 3.2.1 to support Mulitple Domain ?

2020-09-25 Thread amit rathee
I have configured my xx.com domian and now I have to support yy.com by the
same CAS server . Where do I need to do the changes ?

Regards,
Amit

On Fri, Sep 25, 2020 at 4:38 PM Christophe Delcour <
christophedelc...@gmail.com> wrote:

> 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] -  from [JsonServiceRegistry].>
> 2020-09-25 13:03:01,934 DEBUG
> [org.apereo.cas.ticket.registry.AbstractMapBasedTicketRegistry] -  [TGT-1-*8ovoFM8IAk-belenios] could not be found>
> 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] -  cookies for warn cookie generator to: [/cas/]>
> 2020-09-25 13:03:02,208 DEBUG
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] -  cookies for TGC cookie generator to: [/cas/]>
> 2020-09-25 13:03:02,215 DEBUG
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] -  in context scope: [
> 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] -  found for [classpath:custom_messages_en] - neither plain properties nor XML>
> 2020-09-25 13:03:04,030 DEBUG
> [org.apereo.cas.web.view.CasReloadableMessageBundle] -  found for [classpath:custom_messages] - neither plain properties nor XML>
> 2020-09-25 13:03:04,031 DEBUG
> [org.apereo.cas.web.view.CasReloadableMessageBundle] -  found for [classpath:messages_en] - neither plain properties nor XML>
> 2020-09-25 13:03:04,039 DEBUG
> [org.apereo.cas.web.view.CasReloadableMessageBundle] -  [messages.properties] with encoding 'UTF-8'>
> 2020-09-25 13:03:04,822 DEBUG
> [org.apereo.cas.ticket.registry.AbstractMapBasedTicketRegistry] -  [TGT-1-*8ovoFM8IAk-belenios] could not be found>
> 2020-09-25 13:03:05,205 DEBUG
> [org.apereo.cas.ticket.registry.AbstractMapBasedTicketRegistry] -  [TGT-1-*8ovoFM8IAk-belenios] could not be found>
> 2020-09-25 13:03:07,952 INFO
> [org.apereo.cas.services.AbstractServicesManager] -  from [JsonServiceRegistry].>
> 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] -  ticket cleanup.>
>
>
>
> 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
> 
> .
>


-- 
Cheers,
Amit

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

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.