Skip to content

Instantly share code, notes, and snippets.

@larsolino
Created February 4, 2020 08:43
Show Gist options
  • Save larsolino/c337a17cd37dc459272565effcfb7a3b to your computer and use it in GitHub Desktop.
Save larsolino/c337a17cd37dc459272565effcfb7a3b to your computer and use it in GitHub Desktop.

Revisions

  1. larsolino created this gist Feb 4, 2020.
    22 changes: 22 additions & 0 deletions jaas.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    /**
    * options for JCRAuthenticationModule module:
    * realm: to restrict the login to a certain realm
    * use_realm_callback: to allow the GUI to pass the realm to login into
    * skip_on_previous_success: if true the login is scipped if a former module proceeded a successfull login
    *
    * example:
    * info.magnolia.jaas.sp.jcr.JCRAuthenticationModule requisite realm=public;
    * info.magnolia.jaas.sp.jcr.JCRAuthenticationModule requisite realm=admin skip_on_previous_success=true;
    */

    magnolia {
    info.magnolia.jaas.sp.jcr.JCRAuthenticationModule optional;
    info.magnolia.jaas.sp.ldap.LDAPAuthenticationModule optional skip_on_previous_success=true;
    info.magnolia.connector.sso.jaas.SSOAuthenticationModule requisite skip_on_previous_success=true;
    info.magnolia.jaas.sp.jcr.JCRAuthorizationModule required;
    };

    sso-authentication {
    info.magnolia.connector.sso.jaas.SSOAuthenticationModule requisite;
    info.magnolia.jaas.sp.jcr.JCRAuthorizationModule required;
    };