rombert commented on PR #18:
URL: https://github.com/apache/sling-samples/pull/18#issuecomment-3244360035

   Thanks @nscendoni . I made the adjustment but have the same issue. Here are 
the debug auth logs I could gather
   
   When accessing the protected resource and getting redirected to google for 
login
   
   ```
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.oauth_client.impl.OidcAuthenticationHandler inside 
extractCredentials
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.HttpBasicAuthenticationHandler 
forceAuthentication: Not forcing authentication because request parameter 
sling:authRequestLogin is not set
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator getAuthenticationInfo: no 
handler could extract credentials; assuming anonymous
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator doHandleSecurity: No 
credentials in the request, anonymous
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: 
Anonymous access not allowed by configuration - requesting credentials
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator login: requesting 
authentication using handler: 
org.apache.sling.auth.oauth_client.impl.OidcAuthenticationHandler@ba806a5
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.oauth_client.impl.OidcAuthenticationHandler inside 
requestCredentials
   02.09.2025 10:33:08.484 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.oauth_client.impl.OidcAuthenticationHandler Missing 
mandatory request parameter 'c' using default connection
   ```
   
   after getting redirected back from Google
   
   ```
   02.09.2025 10:33:36.245 *DEBUG* [qtp918996980-336] 
org.apache.sling.auth.core.impl.HttpBasicAuthenticationHandler 
forceAuthentication: Not forcing authentication because request parameter 
sling:authRequestLogin is not set
   02.09.2025 10:33:36.245 *DEBUG* [qtp918996980-336] 
org.apache.sling.auth.core.impl.SlingAuthenticator getAuthenticationInfo: no 
handler could extract credentials; assuming anonymous
   02.09.2025 10:33:36.245 *DEBUG* [qtp918996980-336] 
org.apache.sling.auth.core.impl.SlingAuthenticator doHandleSecurity: No 
credentials in the request, anonymous
   02.09.2025 10:33:36.245 *DEBUG* [qtp918996980-336] 
org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: 
Anonymous access not allowed by configuration - requesting credentials
   02.09.2025 10:33:36.245 *DEBUG* [qtp918996980-336] 
org.apache.sling.auth.core.impl.SlingAuthenticator login: requesting 
authentication using handler: Form Based Authentication Handler
   02.09.2025 10:33:36.261 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.HttpBasicAuthenticationHandler 
forceAuthentication: Not forcing authentication because request parameter 
sling:authRequestLogin is not set
   02.09.2025 10:33:36.261 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator getAuthenticationInfo: no 
handler could extract credentials; assuming anonymous
   02.09.2025 10:33:36.261 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator doHandleSecurity: No 
credentials in the request, anonymous
   02.09.2025 10:33:36.265 *DEBUG* [qtp918996980-94] 
org.apache.sling.auth.core.impl.SlingAuthenticator setAttributes: 
ResourceResolver stored as request attribute: user=anonymous
   ```
   
   Does anything look suspicious to you?
   
   Also, I can't reliably get the redirect to Google when logging in, sometimes 
this gets redirected to the form login, maybe it's related.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to