Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
The six-digit code is an expected security fallback when Bot Framework Token Service cannot correlate the completed authentication with the Teams conversation user. There is no supported option to force automatic completion in that condition.
LinkedIn Generic OAuth requires interactive authentication and doesn’t support Teams/Entra silent SSO token exchange. However, the documentation doesn’t establish that Generic OAuth or an intermediate 302 must always produce a magic code.
Please use a native OAuthCard with a fresh getSignInResource() URL, ensure token.botframework.com is in validDomains, and test from a Teams personal chat using the same browser/session. The sign-in URL’s exact lifetime isn’t publicly documented or configurable, so create it when the user clicks rather than expecting it to remain valid for days.
If native OAuthCard previously completed automatically under identical conditions but now consistently shows a code, provide timestamps, tenant/bot/conversation/user IDs, Teams client version, and a network trace, then open a Microsoft support case to confirm whether Token Service behavior changed.