An error occured while retrieving the signin link

usman imtiaz 1 Reputation point
2021-12-27T15:59:58.367+00:00

I am trying to login using bot framework. Everything goes well, up to the moment I click the "Sign-in" button on my "auth" card. Sign in dialog model open and it show the error

 {
   "error": {
     "code": "ServiceError",
     "message": "An error occured while retrieving the signin link"
    }
 }

MainDialog.ts

  this.addDialog(new OAuthPrompt(OAUTH_PROMPT, {
            connectionName: process.env.connectionName,
            text: `Hi! I'm Bot - welcome to our app for Microsoft Team!",
            I'm here to help you manage your ticket`,
            timeout: 300000,
            title: 'Sign In'
        }))
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,563 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. YutongTie-MSFT 46,566 Reputation points
    2021-12-27T18:15:53.957+00:00

    @usman imtiaz

    Thanks for reaching out to us. I have seen same issue happened when the bot application OAuth settings is not correct.

    In that case the issue was caused by wrong OAuth connection name inside the config.py. The config.py’s connection name should be the Channle OAuth settings name not the bot name and the name inside the bot channel configuration and use the name inside the config.py.

    Could you please also check on your config file to see if you have set the connection setting correct?

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

  2. azdy 1 Reputation point
    2022-06-10T12:29:35.693+00:00

    I had this problem in teams bot signing procedure in web chat.
    I solved it by:

    1. Add correct OAuth connection settings using this link. If you want to access the https://graph.microsoft.com as a resource, you should add permission to your app in Azure portal.
    2. Add the redirect URIs (https://token.botframework.com/.auth/web/redirect) to bot app in Azure portal.

    I have a problem:
    Bot sign-in popup windows not working in teams chat but it works in web chat. Is there anything should I consider?
    when I click on sign-in, I see it "Something went wrong. Please try again."
    I used this example: https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/javascript_nodejs/46.teams-auth