.. include:: /Includes.rst.txt .. _handbook-administration-identity-providers: ============== Single sign-on ============== With single sign-on, people log in with their company account, such as Microsoft Entra ID or ADFS, instead of an adsum password. Open :guilabel:`Administration > Single sign-on` (administrators only). .. figure:: /Images/Handbook/identity-providers.png :alt: The list of single sign-on providers :class: with-shadow The single sign-on providers. Add a provider ============== First register adsum as an application at your provider. Then: #. Select :guilabel:`Add a provider`. #. Choose the :guilabel:`Type`: :guilabel:`OpenID Connect` or :guilabel:`SAML 2.0`. It cannot be changed later. #. Enter the :guilabel:`Label`, the text of the login button, and switch on :guilabel:`Active`. #. Fill in the connection. For OpenID Connect: :guilabel:`Issuer URL`, :guilabel:`Client ID`, :guilabel:`Client Secret` and :guilabel:`Scopes`, as your provider gives them. For SAML, see below. #. Enter the :guilabel:`Allowed e-mail domains`, such as ``example.de``. #. Under :guilabel:`Claims`, name where the provider sends the e-mail address, first and last name and, if you want, the groups. #. Save, then select :guilabel:`Test` to check the connection. Nobody is logged in by the test. To change a provider, select its label. Leave a secret field empty to keep the stored secret. :guilabel:`Delete` on its row removes the provider. .. _handbook-administration-identity-providers-saml: SAML 2.0 providers ================== Under :guilabel:`SAML 2.0`, enter the :guilabel:`Metadata address of the provider`, or paste its metadata into :guilabel:`Metadata document of the provider`. After saving, open the provider and give :guilabel:`Metadata of adsum for this provider` to the provider's administrator. Refused logins appear in the security log as :guilabel:`SAML response rejected`. Options ======= :guilabel:`Create accounts at first login` A person without an account gets one without roles, and HR is asked to link it to the employee record. When off, only people who already have an account can log in. :guilabel:`Only this provider for these domains` People of the allowed domains can no longer log in with a password. Keep one administrator who logs in with a password, in case the provider fails; adsum insists on it. :guilabel:`Require a proven second factor` The login is refused unless the provider confirms a second factor. :guilabel:`Roles from groups` Switch it on and enter the :guilabel:`Groups for HR` and :guilabel:`Groups for admins`. At every login, people get or lose these roles according to their groups. Good to know ============ - Without allowed e-mail domains, the provider cannot log anybody in. - An existing account is linked at the first login by its e-mail address. - With single sign-on, the provider is responsible for the second factor. - For Active Directory or LDAP, see :ref:`handbook-administration-directory`.