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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With