Azure Active Directory


If you want to use Azure AD authentication, you need to register an application for your FireStart Identity Server in the Azure portal.

Register the FireStart Azure Application

In the Azure portal go to Azure Active Directory > App Registration and click New Registration.

authentication_2_azure_1

The redirect URI must not end with a subsequent slash.

Click on the newly registered app and you get to its Overview.

authentication_3_azure_2


In the Manage category, click on Authentication. To enable the implicit grant flow, select Access tokens and the ID tokens.

authentication_4_azure_3


Generate a new secret in Certificates & secrets

authentication_5_azrue_4

Do not forget to copy your secret before moving on.

Next, go to the API permissions tab and add application permissions for User.Read.All and Group.Read.All and add delegated permissions for User.ReadWrite.All and Group.ReadWrite.All.

authentication_6_azure_5

The last thing you have to do is to set the group membership claims in the manifest tab to All. The default value is null.

 

JSON

{
...
"groupMembershipClaims": "All",
...
}

 

Now you have everything set up to configure the FireStart IdentityServer.

Configure the IdentityServer

To configure the IdentityServer, you need the Application (client) ID and the Directory (tenant) ID from the Overview tab. The Redirect URI from the Authentication tab and the secret you generated in the Certificates & secrets tab. 

In the appsettings.json the Azure provider and the Graph search provider need to be enabled; all other (search) providers need to be disabled.

Provider Settings

  • DisplayName: freely defined name for the provider.
  • Scheme: an internal Identifier for the provider. Default set to "aad" for Azure Active Directory.
  • TenantId: the name of the AzureInstance or the Azure TenantId.
  • AppId: the Id of the app registration in Azure.
  • AppSecret: the configured secret for the app registration.

Search Provider Settings

  • DisplayName: freely defined name for the search provider.
  • Scheme: same as in the provider settings.
  • It is recommended to use the same configured application from the Azure portal for provider and search provider settings:
    • TenantId: same as in the provider settings.
    • AppId: same as in the provider settings.
    • AppSecret: same as in the provider settings.
  • RedirectUri: allowed redirect Uri for the app registered in Azure.

 

JSON
{
...
"Provider": {
"Saml": {
"Enabled": false,
...
},
"Azure": {
"Enabled": true,
"DisplayName": "Azure AD",
"Scheme": "aad",
"TenantId": "12a3d6ad-c6df-4d6f-a88a-d262ce066e5e",
"AppId": "8fcd90f2-2bea-42e1-86e4-0a8b52bd74cf",
"AppSecret": "<YourAppSecret>"
},
"Windows": {
"Enabled": false
...
}
},
"SearchProvider": {
"External": {
"Enabled": false,
...
},
"ActiveDirectory": {
"Enabled": false,
...
},
"Graph": {
"Enabled": false,
"DisplayName": "Microsoft Graph",
"Scheme": "aad",
"TenantId": "12a3d6ad-c6df-4d6f-a88a-d262ce066e5e",
"AppId": "8fcd90f2-2bea-42e1-86e4-0a8b52bd74cf",
"AppSecret": "<YourAppSecret>",
"RedirectUri": "https://demo.firestart.com/auth/signin-oidc"
}
}
}
 

Do not forget to change the pesAdminGroup registry key to gDevelopment in order to start the FireStart server.