Before you begin
Connecting clients to Azure AD requires a secure connection, so FotoWare needs to be configured with TLS (https) and a trusted certificate. For information on setting up FotoWare for secure connections look here.
Configuring SSO with Azure AD
Add the FotoWare application to the Azure management console
Log in to the Azure portal and add a new application to the Azure Active Directory.
Name the application and choose Web application as its type. At this point, also set the Redirect URI that your application uses. For single sign-on to a FotoWare SaaS tenant, the URL is typically of this format:
After creating the application registration, go to App Registrations > Application > Overview to retrieve the Application ID (screenshot below).
This ID needs to be entered into the FotoWare Azure AD config in the site configuration later.
Set the correct Redirect URI
Go to Application > Authentication > Redirect URIs and add a new Redirect URI. It should match the FotoWare server's public hostname followed by /fotoweb/auth/signin-oidc, for example https://hostname.fotoware.cloud/fotoweb/auth/signin-oidc
Next, remove any other original Redirect URL that's listed.
Enable Implicit grant for ID tokens
Under Application > Authentication, locate the Implicit grant section and enable implicit grant for ID tokens as shown in the screenshot below.
Assign permissions to the application
Next, assign the necessary settings to the application: Go to Application > API Permissions click on the Add a permission button.
Use the Microsoft Graph API to add two Delegated permissions, namely
- Access the directory as the signed-in user (Directory.AccessAsUser.All)
- Sign in and read user profile (User.Read)
Make sure to hit Save to update the permissions.
Finally, click on Grant admin consent for <directory> below to assign the permissions to all users in the directory.
Create application secret
Next, generate an application secret under Application > Certificates and secrets > Client secrets:
Click on the New client secret button and enter a key description (simply a label) and set a duration/validity period. For security reasons, a key can be valid for a maximum of two years.
The key will be created and can be obtained after you save the changes. It can then be copied to the clipboard and pasted into the Application key field in the Azure AD settings in the Operations Center.
Because the validity of the application key is maximum two years, it's practical to make a reminder in your maintenance calendar to replace the key before it expires. If they key does expire, users will temporarily lose access to the system.
Adding Azure AD information to the FotoWare Site Configuration
Having completed the above steps, make sure you have gathered the necessary information from the Azure console before proceeding:
Found in the Azure console in the application overview:
The secret generated in the Azure console with a validity of maximum two years.
Tenant / Domain Name
The domain name listed in the Azure portal. If you're uncertain about the value, open the Azure console and click on the Azure Active Directory node. The Name field there lists the correct domain name.
This can be found on the Overview blade, next to the Application ID - see the screenshot above.
Adding the information to the FotoWare tenant in the Operations Center
On the FotoWare site, log in with the site owner account or a user with the Manage settings group permission.
Open the Tools menu and choose Site Configuration, and then navigate to the Security node and choose Single Sign-on.
Enter the Application Id, Application Key (called Client Secret in the Azure portal), Tenant/Domain name and Directory Id values and save the changes.