Skip to content

Calendar Skill Authentication Configuration

lauren-mills edited this page Mar 3, 2021 · 1 revision

After provisioning your bot resources for your Calendar Skill, follow these steps to set up the correct authentication and permissions for Microsoft Graph:

  1. Configure scopes on the Microsoft App Registration

    1. Open your Bot Channels Registration resource in the Azure Portal and go to the Configuration tab
    2. Click Manage beside the Microsoft App ID field to navigate to your Microsoft App Registration settings
    3. Select API permissions
    4. Click Add a permission and select Microsoft Graph > Delegated permissions
    5. Add the following scopes:
      • Calendars.ReadWrite
      • Contacts.Read
      • People.Read
      • User.ReadBasic.All
    6. Click Add permissions
  2. Add an OAuth Connection to your bot

    1. Open your Bot Channels Registration resource in the Azure Portal and go to the Configuration tab
    2. Click Add OAuth Connection Settings
    3. Give your connection a name (save this for a later step)
    4. Select Azure Active Directory v2 as the service provider
    5. Fill in the following information
      • Client id: your Microsoft App ID
      • Client secret: your Microsoft App Password
      • Tenant ID: common
      • Scopes: Calendars.ReadWrite Contacts.Read People.Read User.ReadBasic.All
  3. In your bot appsettings in Composer, set the oauthConnectionName property to the connection name you set in step 2iii

  4. Now you can log into the Calendar Skill using one of the accounts from this list

    1. To access the passwords for the accounts, click the Azure Key Vault link then copy the secret value