Login into your Azure Port 

  1. Search for and select App registrations.

  2.  Make sure your Azure AD account in the Azure portal is configured with a redirect URL like (protocol):/(host)/oauth2/code/my_azure_ad_tenant_id kindly confirm and update your correct tenant id.  (https://dhis2Appurl/oauth2/code/azuretenanantid)

  3. Click Register 

  4. under the Authentication Tab click on ADD a platform make sure the field are configured as shown in the display below .

  5. Select the Web icon and configure as shown below 

  6. Click on Save 

  7. Click the Certificates & secrets in the pane select New Client Secret , choose a name for the secret  eg. dhis2app etc ,chose the expiry date of never or how long you want the secret to be active .copy out the client secret value as you may it may not be visible once you leave the window.

  8. Click the On Token configuration,Click Add optional Claim and use the config as shown

  9. Click on API Permissions,Click Add a permission ,click on microsoft graph, click on delegated permissions.Search for the following and select it. 

  10.  Directory.AccessAsUser.All,  then click on grant admin consent     

  11.      OPenID  DO not enable grant admin consent for this.

  12. for Branding Tab configure as shown below

  13. Kindly Enusre that all users who will have access have their email is registered in their contact info in AZURE AD as shown below for my account

  14. My User Account Config on  an OIDC configured  instance 

  15. once all configurations set share the following details with BAO systems and we will update your dhis2 server with the config.

  16. Application (client) ID

  17. Directory (tenant) ID

  18. Client credentials secret

  19. Redirect URI