Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 2.14 KB

File metadata and controls

39 lines (37 loc) · 2.14 KB

How to set up Entra ID for the Web App Authentication

  1. Go to Entra ID App Registrations
  2. Click on New Registration.
  3. Fill in the following fields:
    • Name: Enter a name for your app registration (e.g., "EasyChatbot")
    • Supported account types: Select "Accounts in this organizational directory only (Single tenant)"
    • Redirect URI: Select "Web" and enter the redirect URI for your web app (e.g., https://<your-web-app-name>.azurewebsites.net/.auth/login/aad/callback)
  4. Click on Register.
  5. After the registration is complete, you will be redirected to the app registration's overview page.
  6. Go to the Authentication tab in the left sidebar.
    1. Under Select the tokens you want to configure, just select ID tokens (used for implicit and hybrid flows).
    2. Disable the App Instance Proprty Lock
  7. Go to the API permissions tab in the left sidebar.
    1. Click on Add a permission.
    2. Select Microsoft Graph.
    3. Select Delegated permissions.
    4. Search for and select the following permissions:
      • openid
      • profile
      • email
    5. Click on Add permissions.
    6. Click on Grant admin consent for to grant the permissions.
  8. Go to the Expose an API tab in the left sidebar.
    1. Click on Add a scope.
    2. Enter the following details:
      • Scope name: user_impersonation
      • Who can consent?: Admins and users
      • Admin consent display name: Access EasyChatbot
      • Admin consent description: Allows the app to access EasyChatbot on behalf of the signed-in user
      • State: Enabled
    3. Click on Add scope.
  9. Go to the Certificates & secrets tab in the left sidebar.
    1. Click on New client secret.
    2. Enter a description for the client secret (e.g., "EasyChatbot Secret").
    3. Select an expiration period (e.g., "In 6 months").
    4. Click on Add.
    5. Copy the generated client secret value and store it securely (you will need it later).