Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Setup ConnectSecure Identify Provider - Microsoft

Microsoft

Microsoft Azure AD Configuration

Register a new client

  1. Browse to the App registration menus create dialog to create a new app.

  2. Give the application a name and choose who should be able to log in (Single-Tenant, Multi-Tenant, Personal Accounts, etc.) This setting will also impact how to configure the provider later on in ZITADEL.

  3. Choose "Web" in the redirect URI field and add the URL:

  1. Save the Application (client) ID and the Directory (tenant) ID from the detail page separately as these need to be copied into the ConnectSecure portal.

    image-20240111-102931.pngimage-20240111-103345.png

     

Add client secret

Generate a new client secret to authenticate your user.

  1. Click on client credentials on the detail page of the application or use the menu "Certificates & secrets"

  2. Click on "+ New client secret," and enter a description and an expiry date, add the secret afterward

  3. Copy the value of the secret. You will not be able to see the value again after some time

image-20240111-103739.png

Token configuration

To allow ZITADEL to get the information from the authenticating user, you have to configure what kind of optional claims should be returned in the token.

  1. Click on Token configuration in the side menu

  2. Click on "+ Add optional claim"

  3. Add email, family_name, given_name and preferred_username to the id token

image-20240111-104325.png

API permissions

To be able to get all the information that ZITADEL needs, you have to configure the correct permissions.

  1. Go to "API permissions" in the side menu

  2. Ensure the permissions include "Microsoft Graph": email, profile, and User. Read

  3. The "Other permissions granted" should include "Microsoft Graph: openid"

image-20240111-105653.png

To Add an Identity Provider in Your ConnectSecure Instance.

  1. Login to the ConnectSecure portal and Click on Profile.

image-20240111-110531.png
  • Click on the Company Logo.

image-20240111-110850.png
  • Navigate to the Settings.

  • Modify your login policy in the menu Login Behavior and Security.

  • Enable the attribute External IDP allowed.

    image-20240111-111706.png

Go to the Identity Providers Overview

Go to the Settings page of your instance or organization and choose "Identity Providers."”

In the table, you can see all the providers you have configured. Also, you will see all provider templates that are available to be configured.

image-20240111-111225.png
  • Select the Microsoft Provider template.

    image-20240111-113231.png

Create a new Azure AD Provider

  • The Microsoft template has everything you need preconfigured. You only have to add the client ID and secret you created in the previous step.

  • You can configure the following settings if you like; a useful default will be filled if you don't change anything:

Scopes: The scopes define which scopes will be sent to the provider, openid, profile, and email are prefilled. This information will be taken to create/update the user within ZITADEL. Make sure to also add User.Read. ZITADEL ensures that at least openid and User.Read scopes are always sent.

Email Verified: Azure AD doesn't send the email verified claim in the users token, if you don't enable this setting. The user is then created with an unverified email, which results in an email verification message. If you want to avoid that, make sure to enable "Email verified". In that case, the user is created with a verified email address.

Tenant Type: Configure the tenant type according to what you have chosen in the settings of your Azure AD application previously.

  • Common: Choose common if you want all Microsoft accounts being able to login. In this case, configure "Accounts in any organizational directory and personal Microsoft accounts" in your Azure AD App.

  • Organizations: Choose organization if you have Azure AD Tenants and no personal accounts. (You have configured either "Accounts in this organization" or "Accounts in any organizational directory" on your Azure APP)

  • Consumers: Choose this if you want to allow public accounts. (In your Azure AD App you have configured "Personal Microsoft accounts only")

Tenant ID: If you have selected Tenant ID as Tenant Type, you have to enter the Directory (Tenant) ID into the Tenant ID field, copied previously from the Azure App configuration.

Automatic creation: If this setting is enabled the user will be created automatically within ZITADEL, if it doesn't exist.

Automatic update: If this setting is enabled, the user will be updated within ZITADEL, if some user data is changed within the provider. E.g if the lastname changes on the Microsoft account, the information will be changed on the ZITADEL account on the next login.

Account creation allowed: This setting determines if account creation within ZITADEL is allowed or not.

Account linking allowed: This setting determines if account linking is allowed. When logging in with a Microsoft account, a linkable ZITADEL account has to exist already.

image-20240111-112954.png
  • Once the details are filled in and options are selected, click on Create.

image-20240111-113046.png
  • Under the Identity Provider table, select the created record and Click on set as available.

image-20240111-114113.pngScreenshot 2024-01-11 at 5.11.47 PM-20240111-114209.png
  • This completes setting up and adding Microsoft Azure AD Provider.

ConnectSecure portal.

  • Login to the ConnectSecure Portal and enter the Tenant Name.

  • Click on Use External Authentication to log in to the portal.

image-20240111-114354.png
  • Provide all the fields (Give Name, FamilyName, Username, E.mail, Phone number, Language) and click on Register to create a user in the ConnectSecure portal.

image-20240111-121359.png
  • You will receive a verification code at your given email.

image-20240111-121548.png
  • Enter the verification code and click on Next to login to ConnectSecure portal.

image-20240111-123030.png
  • Once the email address has been Successfully verified and The user will created with NO ROLE assigned to it. Admin should assign the Role as per the requirement.

  • The Admin user can assign the role to IDP so the user can login and access the ConnectSecure portal.

    image-20240111-123154.png

 

  • This completes the Microsoft Azure AD Authentication Providers Setup.

  • No labels