Set up SSO for Phocas in Microsoft Entra ID
Last updated
Last updated
User permission: Administration > Configuration
This page outlines how to configure Phocas with Microsoft Entra ID (previously called Azure AD) to allow single sign-on (SSO) for your site. This is typically carried out by the IT person in your organization with access to Entra ID.
The process involves moving between the two applications in five key steps, as outlined below. At the bottom of the page, you'll find some troubleshooting tips.
Click + New > Enterprise Application.
Click + Create your own application.
Enter an application name in the text box.
Select this option: Integrate any other application you don’t find in the gallery (Non-gallery).
Click Create.
In the 2. Set up single sign on panel, click Get started.
Click SAML.
In the Basic SAML Configuration panel, click the Edit button. Keep this screen open.
In Phocas, click Administration > Configuration, then scroll down to the Single sign-on (SSO) > Service Provider section.
Copy the Entity ID from Phocas, then in the Entra ID Identifier (Entity ID) section, click Add identifier and paste the ID into the box.
Copy the ACS URL from Phocas, then in the Entra ID Reply URL (Assertion Consumer Service URL) section, click Add reply URL, and paste the URL into the box.
Click Save.
Obtain the Entra ID SAML certificate. On the Entra ID Single Sign On page, scroll down to the 3 SAML Certificates section and download the Certificate (Base64) file. Open the downloaded certificate file in Notepad and copy the contents.
On the Phocas Configuration page, in the Identity Provider (IP) section, paste the copied certificate contents into the X509 Certificate box. Then, copy the Login URL from Entra and paste it into the Single Sign On Service URL box, and copy the Microsoft Entra Identifier from Entra and paste it into the Entity ID box.
Complete the SSO setup on the Phocas Configuration page, then click Save.
Click Users and groups in the left-hand menu.
Click + Add user/group.
Click None selected.
Locate and select the user(s) or group(s) you want to have access to Phocas, then click Select at the bottom.
Click Assign.
In Phocas, update the user accounts (or create new user accounts) to use the Entra ID usernames. For example, use the email address or User Principal Name (UPN).
The usernames depend on the source attribute sent from Entra ID. This can be found in the Single sign-on > Attributes & Claims section.
Here’s an example of updated usernames in Phocas:
If the user signs in to Phocas using SSO and returns to the sign-in page, the issue is most likely a user authentication issue. The username in Entra must match the username in Phocas; just a matching email address will not work.
If you have permission to view your Phocas logs, you can check whether the username is correct in Phocas.
Go to Logs > Security and see what the Login failed via ‘SAML'
entry shows for the user and what the error message is. Here is an example of such a log:
If the SSO is not working and the Logs > Security displays the following message, the configuration in Phocas is likely wrong. Repeat the steps above to set up the configuration again.
If you continue to have issues after setup, please contact our Support team.