Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth Prompt not working in Emulator #2435

Closed
abdulraouf9567 opened this issue Jul 5, 2023 · 9 comments
Closed

OAuth Prompt not working in Emulator #2435

abdulraouf9567 opened this issue Jul 5, 2023 · 9 comments
Assignees
Labels
Bot Services equired for internal Azure reporting. Do not delete. Do not change color. Bug Your classic code defect customer-reported Required for internal Azure reporting. Do not delete.

Comments

@abdulraouf9567
Copy link

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

4.14.1

Describe the bug

I have created a bot using bot framework composer (v2.1.2) where I have used the OAuth prompt to generate token from the Azure AD. When I tested this in Emulator(4.14.1) once I clicked the OAuth button it shows the redirect url(https://token.botframework.com/.auth/web/redirect) which is shown below and when I clicked the confirm a sign in window pop up with nothing and goes off and no token is generated. I am able to get the token in the web chat as well as in the teams. Please see the below screenshot.

To Reproduce

Steps to reproduce the behavior:

  1. Create a bot using bot framework composer using OAuth Prompt action
  2. Add the app id and password in the composer project
  3. Add Oauth configuration in Azure Bot channel, Provide the connection Name, client id , scope etc
  4. Run the bot in emulator click login for the OAuth prompt action

Expected behavior

When clicked on Login, it should pop a window to signin the user and it will generate the token.

Screenshots

Login 1
Confirm-2
Sign in window

Additional context

Bot composer version 2.1.2,
NET 7.0

[bug]

@abdulraouf9567 abdulraouf9567 added the Bug Your classic code defect label Jul 5, 2023
@InfinytRam
Copy link

Thanks @abdulraouf9567, I'm investigating.

@OEvgeny
Copy link
Collaborator

OEvgeny commented Jul 7, 2023

This looks like related to #2428

@abdulraouf9567
Copy link
Author

Hi @OEvgeny , I have tried with the latest version available, it is still the same error.

@InfinytRam
Copy link

Hi @abdulraouf9567,

I was not able to reproduce this issue using Bot Framework Emulator version 4.14.1 and ngrok version 2.3.41.

The token was successfully retrieved using Composer's OAuth login prompt:
image

Composer OAuth Prompt dialog:
image

@InfinytRam
Copy link

InfinytRam commented Jul 12, 2023

@abdulraouf9567,

Could you please make sure in Emulator settings the following options are checked:

  • User version 1.0 authentication tokens
  • Use a sign-in verification code for OAuthCards

image

Configure the Emulator for authentication

@abdulraouf9567
Copy link
Author

abdulraouf9567 commented Jul 12, 2023

Hi @ramfattah ,

I tried the above steps

Screenshot 2023-07-13 022854

Screenshot 2023-07-13 023105

After I have copied the code and pasted in the chat it is showing like this:

Screenshot 2023-07-13 023126

As you can see in the trace window, the bot is calling the regex intent.

FYI:
I am calling the CLU endpoint (HTTP Post in the trace window).
(https://techcommunity.microsoft.com/t5/fasttrack-for-azure/moving-from-luis-to-clu-in-bot-composer-projects/ba-p/3635914)

I used the above link to integrate CLU in the Bot framework Composer.

@InfinytRam InfinytRam self-assigned this Jul 12, 2023
@InfinytRam InfinytRam added customer-reported Required for internal Azure reporting. Do not delete. Bot Services equired for internal Azure reporting. Do not delete. Do not change color. labels Jul 12, 2023
@InfinytRam
Copy link

@abdulraouf9567, are you able to provide a minimal reproducible .zip bot sample?

@InfinytRam
Copy link

Hi @abdulraouf9567, I was not able to reproduce this issue.

From my end, I installed the Microsoft's ConversationLanguageUnderstanding recognizer package in my Composer bot, rather than manually making HTTP request as shown doc link above.

@InfinytRam
Copy link

Closing due to inactivity. @abdulraouf9567, please re-open if needed. Thanks.

@stevkan stevkan closed this as completed Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services equired for internal Azure reporting. Do not delete. Do not change color. Bug Your classic code defect customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

No branches or pull requests

4 participants