Dear Jordi,

You stated in your description of the issue that (I quote):
*"[...] in Safari and Chrome on macOS Catalnia dosen't work, the login form 
reload again.[...]*

Were you able to try:
1. On a recent version of MacOS ?
2. On Mozilla Firefox on any MacOS version?

Is the result still being looping on login form?

Thx in advance,
Tom
On Monday, October 25, 2021 at 6:52:12 PM UTC+2 Ray Bon wrote:

> Jordi,
>
> Near the end of the log output is this;
>
> [33m2021-10-23 16:37:03,833 WARN 
> [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 
> <[test.10001.json] does not match the recommended pattern 
> [(\w+-)+(\d+)\.json]
>
> Change the file name to test-10001.json. (This should be unrelated to your 
> issue).
>
> Then 10s goes by and ticket cleanup happens.
>
> There should be other audit log lines referring to AUTHENTICATION_SUCCESS, 
> TICKET_GRANTING_TICKET_CREATED, etc.
> Use the safari developer tools in a private window to be sure the correct 
> form submission is taking place and cookies are being created and 
> sent/received.
>
> This is a safari issue, not really a cas issue.
>
> Ray
>
> On Sat, 2021-10-23 at 07:41 -0700, Jordi wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information. 
>
> Hi,
>
> I send you my log4j2.xml (see attached file).
>
> This is the log "cas.log": 
>
> [32m2021-10-23 16:36:03,832 INFO 
> [org.apereo.cas.services.AbstractServicesManager] - <Loaded [1] service(s) 
> from [JsonServiceRegistry].>
> [32m2021-10-23 16:36:12,135 INFO 
> [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
> trail record BEGIN
> =============================================================
> WHO: audit:unknown
> WHAT: {result=Service Access Granted, requiredAttributes={}}
> ACTION: SERVICE_ACCESS_ENFORCEMENT_TRIGGERED
> APPLICATION: CAS
> WHEN: Sat Oct 23 16:36:12 CEST 2021
> CLIENT IP ADDRESS: XXX.XXX.XXX.XXX
> SERVER IP ADDRESS: XXX.XXX.XXX.XXX
> =============================================================
>
> >
> [36m2021-10-23 16:36:12,294 DEBUG 
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] - <Setting path for 
> cookies for warn cookie generator to: [/cas/]>
> [36m2021-10-23 16:36:12,294 DEBUG 
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] - <Setting path for 
> cookies for TGC cookie generator to: [/cas/]>
> [36m2021-10-23 16:36:12,301 DEBUG 
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] - <Placing service 
> in context scope: [https://XXXXXXXXX.com:8443/cas-sample/]>
> [36m2021-10-23 16:36:12,301 DEBUG 
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] - <Placing 
> registered service [^(https|imaps)://.*] with id [10001] in context scope>
> [36m2021-10-23 16:36:12,321 DEBUG 
> [org.apereo.cas.web.flow.authentication.RegisteredServiceAuthenticationPolicySingleSignOnParticipationStrategy]
>  
> - <Evaluating authentication policy 
> [DefaultRegisteredServiceAuthenticationPolicy(requiredAuthenticationHandlers=[],
>  
> excludedAuthenticationHandlers=[], 
> criteria=AnyAuthenticationHandlerRegisteredServiceAuthenticationPolicyCriteria(tryAll=false))]
>  
> for [test]>
> [36m2021-10-23 16:36:12,330 DEBUG 
> [org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver] - 
> <Resolved single event [success] via 
> [org.apereo.cas.web.flow.resolver.impl.RankedMultifactorAuthenticationProviderWebflowEventResolver]
>  
> for this context>
> [32m2021-10-23 16:36:12,331 INFO 
> [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
> trail record BEGIN
> =============================================================
> WHO: audit:unknown
> WHAT: {source=RankedMultifactorAuthenticationProviderWebflowEventResolver, 
> event=success, timestamp=Sat Oct 23 16:36:12 CEST 2021}
> ACTION: AUTHENTICATION_EVENT_TRIGGERED
> APPLICATION: CAS
> WHEN: Sat Oct 23 16:36:12 CEST 2021
> CLIENT IP ADDRESS: XXX.XXX.XXX.XXX
> SERVER IP ADDRESS: XXX.XXX.XXX.XXX
> =============================================================
>
> >
> [36m2021-10-23 16:36:14,221 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [file:/etc/cas/config/custom_messages_es_ES] - neither plain 
> properties nor XML>
> [36m2021-10-23 16:36:14,222 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [classpath:custom_messages_es_ES] - neither plain properties nor 
> XML>
> [36m2021-10-23 16:36:14,223 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [classpath:messages_es_ES] - neither plain properties nor XML>
> [36m2021-10-23 16:36:14,224 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [file:/etc/cas/config/custom_messages_es] - neither plain 
> properties nor XML>
> [36m2021-10-23 16:36:14,224 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [file:/etc/cas/config/custom_messages] - neither plain properties 
> nor XML>
> [36m2021-10-23 16:36:14,224 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [classpath:custom_messages_es] - neither plain properties nor XML>
> [36m2021-10-23 16:36:14,225 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file 
> found for [classpath:custom_messages] - neither plain properties nor XML>
> [36m2021-10-23 16:36:14,226 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <Loading properties 
> [messages_es.properties] with encoding 'UTF-8'>
> [36m2021-10-23 16:36:14,231 DEBUG 
> [org.apereo.cas.web.view.CasReloadableMessageBundle] - <Loading properties 
> [messages.properties] with encoding 'UTF-8'>
> [32m2021-10-23 16:36:29,202 INFO 
> [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
> trail record BEGIN
> =============================================================
> WHO: audit:unknown
> WHAT: {result=Service Access Granted, requiredAttributes={}}
> ACTION: SERVICE_ACCESS_ENFORCEMENT_TRIGGERED
> APPLICATION: CAS
> WHEN: Sat Oct 23 16:36:29 CEST 2021
> CLIENT IP ADDRESS: XXX.XXX.XXX.XXX
> SERVER IP ADDRESS: XXX.XXX.XXX.XXX
> =============================================================
>
> >
> [36m2021-10-23 16:36:29,204 DEBUG 
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] - <Placing service 
> in context scope: [https://XXXXXXXXX.com:8443/cas-sample/]>
> [36m2021-10-23 16:36:29,205 DEBUG 
> [org.apereo.cas.web.flow.login.InitialFlowSetupAction] - <Placing 
> registered service [^(https|imaps)://.*] with id [10001] in context scope>
> [36m2021-10-23 16:36:29,205 DEBUG 
> [org.apereo.cas.web.flow.authentication.RegisteredServiceAuthenticationPolicySingleSignOnParticipationStrategy]
>  
> - <Evaluating authentication policy 
> [DefaultRegisteredServiceAuthenticationPolicy(requiredAuthenticationHandlers=[],
>  
> excludedAuthenticationHandlers=[], 
> criteria=AnyAuthenticationHandlerRegisteredServiceAuthenticationPolicyCriteria(tryAll=false))]
>  
> for [test]>
> [36m2021-10-23 16:36:29,206 DEBUG 
> [org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver] - 
> <Resolved single event [success] via 
> [org.apereo.cas.web.flow.resolver.impl.RankedMultifactorAuthenticationProviderWebflowEventResolver]
>  
> for this context>
> [32m2021-10-23 16:36:29,206 INFO 
> [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
> trail record BEGIN
> =============================================================
> WHO: audit:unknown
> WHAT: {source=RankedMultifactorAuthenticationProviderWebflowEventResolver, 
> event=success, timestamp=Sat Oct 23 16:36:29 CEST 2021}
> ACTION: AUTHENTICATION_EVENT_TRIGGERED
> APPLICATION: CAS
> WHEN: Sat Oct 23 16:36:29 CEST 2021
> CLIENT IP ADDRESS: XXX.XXX.XXX.XXX
> SERVER IP ADDRESS: XXX.XXX.XXX.XXX
> =============================================================
>
> >
> [33m2021-10-23 16:37:03,833 WARN 
> [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 
> <[test.10001.json] does not match the recommended pattern 
> [(\w+-)+(\d+)\.json]. While CAS tries to be forgiving as much as possible, 
> it's recommended that you rename the file to match the requested pattern to 
> avoid issues with duplicate service loading. Future CAS versions may try to 
> strictly force the naming syntax, refusing to load the file.>
> [36m2021-10-23 16:37:03,833 DEBUG 
> [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 
> <Attempting to read and parse 
> [/opt/URVsso/cas-test/apache-tomcat-9.0.31.8443/webapps/cas/WEB-INF/classes/services/test.10001.json]>
> [32m2021-10-23 16:37:03,835 INFO 
> [org.apereo.cas.services.AbstractServicesManager] - <Loaded [1] service(s) 
> from [JsonServiceRegistry].>
> [32m2021-10-23 16:37:13,902 INFO 
> [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0] 
> expired tickets removed.>
> [36m2021-10-23 16:37:13,902 DEBUG 
> [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <Finished 
> ticket cleanup.>
>
> Many thanks
>
> El viernes, 22 de octubre de 2021 a las 17:18:34 UTC+2, Ray Bon escribió:
>
> Jordi,
>
> If the log in screen is being shown, cas thinks you need to authenticate.
>
> Before looking at the spring logs, check the cas audit log. It will have 
> lines like:
>
> 2021-10-21 17:43:37,920 
> INFO  [       org.aper.insp.audi.supp.Slf4jLoggingAuditTrailManager] - <Thu 
> Oct 21 17:43:37 PDT 2021|CAS| ...
>
> This is the relevant section in log4j2.xml
>
>         <!-- Log audit to all root appenders, and also to audit log 
> (additivity is not false) -->
>         <AsyncLogger name="org.apereo.inspektr.audit.support" level="info" 
> includeLocation="true" >
>             <!-- <AppenderRef ref="casAudit"/>
>             <AppenderRef ref="syslog"/> -->
>         </AsyncLogger>
>
> You can also try these loggers to get details about your service:
>
>         <!-- INFO  Granted ticket [...] for service [...] for user [...]
>              DEBUG Resolved service [limited details about service]
>                    Located registered service definition [service details] 
> -->
>         <AsyncLogger 
> name="org.apereo.cas.DefaultCentralAuthenticationService" level="debug" />
>         <!-- DEBUG service definitions -->
>         <AsyncLogger name="org.apereo.cas.adaptors" level="debug" />
>
> Ray
>
> On Fri, 2021-10-22 at 01:03 -0700, Jordi wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information. 
>
> Hello  Ray Bon, 
>
> this is the log:
> [image: Logs.png]
>
> If do you need more information, i could extract more logs. 
>
> Thanks.
>
> El viernes, 22 de octubre de 2021 a las 9:57:52 UTC+2, Jordi escribió:
>
> Hello 
>
> I did another test only with json register service, without LDAP 
> Authentication. The problem is when I register a service, because CAS not 
> redirect to. 
>
> In this example the URL that I am calling is : 
> https://localhost:8443/cas/login?service=https%3A%2F%2Flocalhost%3A8443%2Fcas-sample%2F
>
> I send you the video and the project (https://we.tl/t-MMM4MbxyPF send you 
> by https://wetransfer.com/). The project was deployed on apache Tomcat 
> v9.0.31
>
> SO Version:
> [image: VersionSO.png]
>
> Safari version:
> [image: VersionSafari.png]
>
> This works perfectly on all browsers on Windows, but doesn't work on 
> Safari . 
>
> Many thanks!
>
>
> -- 
>
>
> Ray Bon
> Programmer Analyst
> Development Services, University Systems
> 2507218831 <(250)%20721-8831> | CLE 019 | [email protected]
>
> I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional 
> territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ 
> peoples whose historical relationships with the land continue to this day.
>
> -- 
>
> Ray Bon
> Programmer Analyst
> Development Services, University Systems
> 2507218831 <(250)%20721-8831> | CLE 019 | [email protected]
>
> I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional 
> territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ 
> peoples whose historical relationships with the land continue to this day.
>

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f1b80070-37eb-43b1-8701-c8b6b923c908n%40apereo.org.

Reply via email to