Azure bot service - Cognito as an OAuth Connection

Mohamed Berrada 1 Reputation point
2020-09-13T13:52:09.307+00:00

Hello,
We recently started using Amazon Congito for our user auth, but we're having an issue on having it work with an Azure bot service.

Here's the OAuth connection settings on the bot side:
Authorization URL: https://....amazoncognito.com/oauth2/authorize
Token URL: https://....amazoncognito.com/oauth2/token
Refresh URL: https://....amazoncognito.com/oauth2/refresh-token

Upon a successful auth, the returned token from Cognito is as follows:
Access Token: eyJraW….
Token Type: Bearer
id_token: eyJraW….
expires_in: 21600

What happens is: the bot caches the access token whereas we need the identity token to make calls to our api.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
833 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,699 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 45,961 Reputation points Microsoft Employee
    2020-09-14T10:38:39.9+00:00

    @Mohamed Berrada From the list of supported OAuth connection providers AWS cognito is not supported currently. More details are available here. Are you using Oauth2 generic provider for the settings and added cognito auth, token and refresh URLs?

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.