Steps to Reproduce
Environment
- SDK version: botbuilder 4.23.3
- Node.js: 22.22.0
- Platform: Microsoft Teams
- Bot Type: SingleTenant
- Channel: msteams
- OS: macOS / Windows Server 2019 (Azure)
Describe the Bug
A SingleTenant Azure Bot registered in Azure returns an empty 401 Unauthorized
from:
https://api.botframework.com/api/usertoken/GetToken
https://api.botframework.com/api/usertoken/GetTokenStatus
Despite presenting a valid bearer token with correct claims.
The bot successfully acquires its own token from the tenant-specific endpoint,
but api.botframework.com rejects it with an empty 401 and no error message.
Steps to Reproduce
- Create an Azure Bot resource with
msaAppType: SingleTenant
- Register app in Azure AD as
AzureADMyOrg
- Configure an OAuth connection in the Azure Bot resource
- Implement
OAuthPrompt in a Teams bot using botbuilder SDK v4.23.3
- Set
ConfigurationBotFrameworkAuthentication with explicit SingleTenant config
Expected Behavior
/api/usertoken/GetToken should:
- Return the user token, or
- Return 404 if no token is cached
A 401 should not occur when the token is valid.
Actual Behavior
Steps to Reproduce
Environment
Describe the Bug
A SingleTenant Azure Bot registered in Azure returns an empty 401 Unauthorized
from:
https://api.botframework.com/api/usertoken/GetTokenhttps://api.botframework.com/api/usertoken/GetTokenStatusDespite presenting a valid bearer token with correct claims.
The bot successfully acquires its own token from the tenant-specific endpoint,
but
api.botframework.comrejects it with an empty 401 and no error message.Steps to Reproduce
msaAppType: SingleTenantAzureADMyOrgOAuthPromptin a Teams bot using botbuilder SDK v4.23.3ConfigurationBotFrameworkAuthenticationwith explicit SingleTenant configExpected Behavior
/api/usertoken/GetTokenshould:A 401 should not occur when the token is valid.
Actual Behavior