Set up fairlogin
fairlogin is an OAuth login provider from fairkom.eu that is aware of the GDPR (the EU General Data Protection Regulation). It runs on Keycloak. After setup, the ERPNext login page offers a fairlogin button.
INFO
Social Login Key is part of the Frappe Framework. The same steps work for other Keycloak servers: select Keycloak as the provider instead of fairlogin.
Prerequisites
- The System Manager role.
- A client for your ERPNext site in fairlogin. fairkom offers client registration as a service. In Keycloak, the client uses the
openid-connectprotocol, and the root, redirect, and base URLs are the address of your ERPNext site. - The client ID and client secret of that client.
Enable fairlogin
Open the Social Login Key list and create a new Social Login Key.
In Social Login Provider, select fairlogin. ERPNext fills in the provider URLs:
Field Value Base URL https://id.fairkom.net/auth/realms/fairlogin/Authorize URL https://id.fairkom.net/auth/realms/fairlogin/protocol/openid-connect/authAccess Token URL https://id.fairkom.net/auth/realms/fairlogin/protocol/openid-connect/tokenRedirect URL /api/method/frappe.integrations.oauth2_logins.login_via_fairloginAPI Endpoint https://id.fairkom.net/auth/realms/fairlogin/protocol/openid-connect/userinfoEnter the Client ID and Client Secret.
In Sign ups, select Allow to create an ERPNext user for a new fairlogin account, or Deny to accept only existing users.
Select Enable Social Login, and save.
The login page now shows a fairlogin button.