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 issue: Unable to use 3rd party oauth identity providers #513

Open
RamkumarManavalan opened this issue Nov 3, 2022 · 0 comments

Comments

@RamkumarManavalan
Copy link

Hello Team,

I have developed a bot using Bot Framework Composer (v2.1.2 dotnet/C#) and deployed the same as Azure Bot Service. In the bot framework composer, I installed the nuget package 'Bot.Builder.Community.Adapters.Webex'. And, made the changes below:
appsettings.json:
{
...
"runtimeSettings": {
"adapters": [
{
"name": "Microsoft.WebexAdapter",
"enabled": true,
"route": "webex",
"type": "Bot.Builder.Community.Adapters.Webex.WebexAdapter"
}
],
...
"components": [
{
"name": "Bot.Builder.Community.Adapters.Webex",
"settingsPrefix": "Bot.Builder.Community.Adapters.Webex"
}
],
...
}
...
"WebexAccessToken": "xxxxx",
"WebexPublicAddress": "https://webexapis.com/v1/",
"WebexSecret": "xxxxx",
"WebexWebhookName": "xxxxx",
...
}

Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers().AddNewtonsoftJson(options => {
options.SerializerSettings.MaxDepth = 128; //HttpHelper.BotMessageSerializerSettings.MaxDepth;
});
services.AddSingleton<IBotFrameworkHttpAdapter, WebexAdapter>();
....
}

I am able to successfully communicate to my bot from the webex chat app.

Now I need to let my users authenticate themselves via 3rd party identity providers such as Google and Microsoft. To do that, I use the Oauth Login Prompt option in the composer. However, when I try to run that with Webex, I get the error below from the bot service:

System.NotSupportedException: OAuth prompt is not supported by the current adapter
at Microsoft.Bot.Builder.Dialogs.UserTokenAccess.GetUserTokenAsync(ITurnContext turnContext, OAuthPromptSettings settings, String magicCode, CancellationToken cancellationToken)

Is there any other way for me to use this webex adapter and let the users authenticate via 3rd party identity service providers? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant