How to register NoSpamProxy as an app in Microsoft Azure
To set up automatic user import via Azure Active Directory in NoSpamProxy, NoSpamProxy must be registered as an app in the Azure Portal.
Registering an app
- Open portal.azure.com.
- Go to Azure Active Directory > App registrations.
- Click New Registration.
- Enter a name for the app, for example NoSpamProxy.
- Select Accounts in any organizational directory (any Azure AD directory – Multitenant) as the account type.
- Select Web as type for the redirect URIs and enter the following URIs:
https://www.nospamproxy.de/de/admin-consent-redirect/ https://www.nospamproxy.de/en/admin-consent-redirect/
The URIs are used as targets when returning authentication responses (tokens) after users have been successfully authenticated.
- Click Register.
The app registration is now complete. The following overview page displays details about your app registration.
Note: You need the Application ID (Client ID) and the Directory ID (Tenant ID) to connect to the Azure Active Directory in NoSpamProxy.
Adding API permissions
In order to use the automatic user import, you must authorize NoSpamProxy to call certain APIs.
- Open the overview page of your app.
- Go to API permissions.
- Click Add a permission.
- Click Microsoft Graph.
- Click Application permissions.
- Select Group.Read.All, User.Read.All and User.Read.
- Click Grant admin consent for “YourCompany”.
Uploading certificates
NoSpamProxy identifies itself to the authentication service when receiving tokens at a web addressable location (using an HTTPS scheme). You must upload the certificate required for the authetication here.
- Open the overview page of your app.
- Go to Certificates and secrets.
- Click Upload certificate.
- Select the certificate you want to use. You may use the self-signed certificate created by NoSpamProxy during the installation process or another certificate qualified for client authentication.
- Click Add. After uploading the certificate, the fingerprint, start date and expiry date are displayed.