Skip to content

Instantly share code, notes, and snippets.

@serpensalbus
Created February 4, 2020 08:43
Show Gist options
  • Save serpensalbus/c337a17cd37dc459272565effcfb7a3b to your computer and use it in GitHub Desktop.
Save serpensalbus/c337a17cd37dc459272565effcfb7a3b to your computer and use it in GitHub Desktop.
JAAS config Magnolia example configuration file
/**
* 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;
};
@quangthe
Copy link

quangthe commented Nov 26, 2021

With new magnolia-sso v2.0 module (https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/SSO-module.html#_configure_jaas), please update sso-authentication block

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment