Setting it up
Add the FotoWeb application to the Azure management console
Log in to the Azure portal and add a new application to the 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 FotoWeb 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 FotoWeb server's public hostname followed by /fotoweb/auth/signin-oidc, for example https://company.fotoware.cloud/fotow...th/signin-oidc
Next, remove the original Redirect URL that's listed: http://fotoweb.company.com/fotoweb/auth/
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 FotoWare below to assign the permissions to all users in the directory:
Create application secret
Next, generate an application secretunder 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 Operations Center
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 FotoWeb tenant in the Operations Center
On the FotoWeb server, open the Operations Center and go to the FotoWeb site configuration.
Go to the Settings tab and choose the Authentication providers node under Services.
Enter the Application Id, Application Key (called Client Secret in the Azure portal), Tenant/Domain name and Directory Id values and save the changes.