-
Notifications
You must be signed in to change notification settings - Fork 809
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
Initial OIDC call fails for SSO MS Teams Bot app #1528
Comments
@cbelsole ,Thank you for your inquiry about your Teams app development issue! We are checking the issue. We will get back to you shortly. |
Hello @cbelsole,Could you kindly verify whether the application with the ID botid-f84031e8-31e4-4935-8af3-bba93dcb3d61 is properly registered in the tenant?
Furthermore, if you are using a third-party app, please ensure that the Client ID and Client Secret for the third-party app are correctly configured. Could you confirm this as well? |
@sayali-MSFT What do you mean by "properly registered in the tenant"? The webApplicationInfo is correct. If I change it, it raises a resource error, and when I put it back the error is resolved. I confirmed that the client id and secret are correctly configured. Can you share the raw requests you are sending to the OICD endpoint? |
What part of teams fires off the |
I have gotten past my original error. I needed to pass the client secret and id on the token URL. Now the OAuth flow is triggering, but it is never completing. I tracked this down to the |
The Teams client is responsible for firing off the signin/tokenExchange action during the SSO (Single Sign-On) process for Adaptive Cards Universal Actions in a bot. The Teams client processes the tokenExchangeResource value and uses the Teams client token to obtain an on-behalf-of token or exchangeable token from Microsoft Entra ID.
We will check this with internal team and let you know the update. |
@sayali-MSFT Any update on this? |
@cbelsole -Just wanted to inform you that internal team is working on this issue, and we are tracking it closely. |
@sayali-MSFT I think I resolved my issue so I can start the token exchange flow. There was a key called identifierUris in the app manifest I had to add the prefix |
@sayali-MSFT to add to Chris' last comment, it seems like every part of the process that happens between Microsoft and Frontegg works correctly because:
Per [2], our understanding based on this document is this
The problem we're experiencing is that after this whole process of auth'ing with Frontegg, receiving the The error that Chris identified above from the official middleware is a smell that something is off here, as we're dubious that Teams isn't properly handling this 3rd party OAuth scenario. But we have quintuple checked our configurations, spun up new configurations based on official documentation, followed the sample code provided, and the "Test Connection" functionality in the Azure OAuth config panel properly returns a token as you observed during our call. We're really at a loss here. Can you investigate our configurations again to see if something is off from the official documentation or provide any further guidance with known working 3rd-party OAuth Teams sample code? Appreciate the help here. |
Hello @mattpardee, Thank you for sharing the detailed information. We will review this with our internal team and provide you with an update shortly. |
I am using MS teams to hook up SSO to Frontegg. The initial OIDC request fails with the response:
App ID: f84031e8-31e4-4935-8af3-bba93dcb3d61
I am using the
Oauth 2 Generic Provider
to create the connection.After the initial failure, the app tries to get a refresh token and fails with the response:
I was able to recreate the issue with this sample.
The text was updated successfully, but these errors were encountered: