Expand my Community achievements bar.

aem saml2.0 Anonymous access not allowed by configuration - requesting credentials


Level 3

15.12.2022 14:55:56.039 *INFO* [qtp2102147594-25673] org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
15.12.2022 14:55:56.049 *WARN* [qtp2102147594-25673] org.apache.sling.auth.core.AuthUtil isRedirectValid: Redirect target must not be empty or null


How can I fix it? I have changed Sling refer. When I want to login my system, it redirect to the IDP login page. However, the status code is 500, I new to SAML2.0, it confused me several days. Who can help me to fix it?

1 Reply


Community Advisor

Please check the below post for the solution



Apache Sling Referrer Filter:

Enable referrer filter to allow B2C tenant URL


CORS Policy:

Enable the CORS policy to allow Cross-Origin POST Request from B2C tenants.



if it doesnt' fix the issue, please enable the saml.log and see what is the issue



    Create a logger with the following configuration:
    • Log Level: Debug
    • Log File: logs/saml.log
    • Logger: com.adobe.granite.auth.saml


Community Advisor

Did you try enabling the saml.log and see more information about the error? if yes, please post it here.

page footer
This widget could not be displayed.