Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending acr_values when using GetOauthSignInLinkAsync

I am implementing a teams bot and are using Identity Server as authentication that we set up in the Bot Channel. It works fine when using

var signInLink = await (turnContext.Adapter as IUserTokenProvider).GetOauthSignInLinkAsync(turnContext, _connectionName, cancellationToken);

However, it seems like we can't add the preferred login method to the call by adding, for example, &acr_values=idp:Aad I can't find a way to add extra parameters when creating the link, I would expect it to be possible to send to GetOauthSignInLinkAsync when creating the link, however it doesn't seem to be possible.

It does not work when adding it to the link once it is created, ie https://token.botframework.com/api/oauth/signin?signin=xxx&acr_values=idp:Aad Does anyone know if it's possible to do this? or have an idea of a workaround? Regards Martin

like image 695
Martin Avatar asked May 29 '20 12:05

Martin


1 Answers

Right now there is not a way to add extra parameters to the sign in link. However, if you configure one of the generic oauth providers, you can customize the URL that is sent to the identity provider. You can follow an example that Eric added to this issue:

https://github.com/microsoft/BotFramework-Services/issues/140

like image 121
Jeff Derstadt Avatar answered Nov 01 '22 09:11

Jeff Derstadt