In order for Flow to connect to an external HTTP(s) web service that requires authentication via OAuth the following steps should be taken.
This article covers:
How to Create an Application Registration in the Azure Portal
Add Azure Active Directory v2 connection to your Tenjin Skill
Add Generic OAuth 2 connection to your Tenjin Skill
Azure Active Directory OAuth Connection
The Azure Active Directory (Azure AD) is a cloud identity service that allows applications to securely authenticate users with standard protocols like OAuth 2.0. This Tenjin skill uses the Microsoft Identity Platform (v2.0), which is an evolution of the Azure AD platform.
Configure this skill in your assistant whenever you want users to be authenticated to access services such as Microsoft Graph using their identity.
Step 1: Create an Application Registration in the Azure Portal
- Navigate to 'App registrations' in the Azure Portal.
- Click 'New registration'.
- Enter a name for your application.
- Choose the supported account types. We suggest 'Accounts in this organizational directory only (Single tenant)'.
- For 'Redirect URI (optional)', choose 'Web' from the drop-down and enter "https://token.botframework.com/.auth/web/redirect"
- Click 'Register'.
- Navigate to 'Certificates & secrets' within your app registration (left-hand navigation link).
- Click 'New client secret' and enter a description, select an expiry, and then click 'Add'.
- Before leaving this page, record the secret 'Value'. You will need to enter this later when configuring Tenjin.
- Navigate to 'Overview' within your app registration (left-hand navigation link).
- Copy the 'Application (client) ID' and the 'Directory (tenant) ID', you will also need these values when configuring Tenjin.
- Navigate to 'API permissions', click 'Add a permission', followed by 'Microsoft Graph', and then 'Delegated permissions'.
- Check 'openid' (Sign users in) and 'profile' (View users’ basic profile) as a minimum, and then add any other specific permissions as required; lastly, click 'Add permissions'.
- That has now configured everything Tenjin needs in your Azure portal.
Step 2: Configure your Tenjin Skill
- Click the ellipsis (three dots) button, top right on your screen followed by Add Skill.
- Click on Add OAuth Skill.
- When the skill is added, click on OAuth.
- Click the +Add OAuth Connection button.
- Click on Add Azure Active Directory v2 Connection.
- Within the 'Add OAuth Connection' page you will be asked to populate a number of fields.
- Detailed inline Help is available.
- Once complete, click the OK button to save your changes.
The OAuth connection will now be available within Flow using the name defined earlier.
Add Generic OAuth 2 Connection
- Click the ellipsis (three dots) button, top right on your screen followed by Add Skill.
- Click on Add OAuth Skill.
- When the skill is added, click on OAuth.
- Click the +Add OAuth Connection button.
- Click on Add Generic OAuth 2 connection.
- Within the 'Add OAuth Connection' page you will be asked to populate a number of fields.
- Detailed inline Help is available.
- Once complete, click the OK button to save your changes.
The OAuth connection will now be available within Flow using the name defined earlier.
Share this article
Comments
0 comments
Article is closed for comments.