- Simple PAS plugin that allows to a Microsoft Tenant users to authenticate on Plone. It relies on:
The authentication happens on the Microsoft server side and then, if succeeded, it creates a local plone.session token keeping the plone user authenticated.
- Setup an Azure App on Microsoft Azure Portal
- Configure environment vars in buildout configuration/ZMI
- Install the product collective.msal in plone control panel
- Use the [sign in with microsoft] button, that has been added to the login form, to authenticate
- enjoy
You have to setup your APP separately on Microsoft Azure portal first; then locally.
- Register your application. This will provides you the CLIENT_ID and directory id of the tenant you will use as AUTHORITY parameter
- Configure your application in order to generate a CLIENT_SECRET
- Define a REDIRECT_PATH (by default: /collective.msal.getAToken). You can set these parameters as enviroment variabiles in buildout configuration (see Installation)
- Setup other Azure stuff according to Microsoft Documentation
- In the instance buildout section: set environment variables properly. see Installation
- In Plone: Install the product via plone control panel. This will adds a Plone/acl_users/acl_msal plugin and overrides (z3c.jbot) the login form adding the Microsoft sign in button
- In ZMI Plone -> acl_users -> acl_msal -> Properties TAB: Verify the parameters CLIENT_ID, CLIENT_SECRET, AUTHORITY, and REDIRECT_PATH (this one by default should point to /collective.msal.getAToken)
If you want to write down your login form you may want to use the followig helper to generate the login href:
Plone/@@collective.msal.login
This product has been translated into
- not really needed so far
Install collective.msal by adding it to your buildout:
[buildout] ... eggs = collective.msal [instance] ... enviroment-vars += CLIENT_ID 25305d7c-xxxx-yyyy-zzzz-abcdefg998877 CLIENT_SECRET secret AUTHORITY https://login.microsoftonline.com/<ID_DIRECTORY_TENANT> REDIRECT_PATH /collective.msal.getAToken
and then running bin/buildout -Nv
- Issue Tracker: https://github.com/collective/collective.msal/issues
- Source Code: https://github.com/collective/collective.msal
If you are having issues, please let me know opening an issue here https://github.com/collective/collective.msal/issues
The project is licensed under the GPLv2.