# Connecting Soffid console ## Introduction Soffid console has a built-in SAML client, so it can act as a service provider in the Soffid federation. It is interesting to use this configuration, as it allows you to enforce the use of two factors authentication to log into the Soffid console. ### Register Soffid as a service provider 1. Enable the SAML protocol in the Soffid console: 1.1. Open the **Authentication** page: `Main Menu > Administration > Configure Soffid > Security settings > Authentication` 1.2. You must enable the **External XAML identity provider**. 1.3. Then you must fill in the fields: [](https://bookstack.soffid.com/uploads/images/gallery/2023-07/image-1689256229585.png) - **Soffid server host name**: URL of the Soffid console. - **SAML federation metadata URL**: URL where the whole federation metadata can be obtained. It used to be [https://your.primary.sync.server:760/SAML/metadata.xml ](https://your.primary.sync.server:760/SAM/metadata.xml)Sometimes, an error as "unable to find valid certification path to requested target" could be displayed. In that case, you must obtain the public certificate from the sync server and store in your Java trusted certs repository. To do that, use the keytool command. The trusted certs repository is located at <JAVA\_HOME>/lib/security/cacerts The command should look like the next one. When prompted for a password type in "changeit"
root@myserver:~$ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool -import -file /tmp/RootCA -trustcacerts -alias syncserver -keystore /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts |
For more information, visit [the Add Applications page.](https://bookstack.soffid.com/books/configuration-wizard/page/add-applications-qO4)
5. Test it 5.1. Next time you log into the Soffid console, a new button will appear for **External (XAML) login** [](https://bookstack.soffid.com/uploads/images/gallery/2021-12/image-1640009166065.png) **5.2.** Click on the External (SAML) login button, and the user will be forwarded to the identity provider. 