AzureAD / microsoft-identity-web

Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
MIT License
684 stars 217 forks source link

Seeing authority_tenant_specified_twice error during token acquisition from v2.0 authority #2288

Closed RojaEnnam closed 1 year ago

RojaEnnam commented 1 year ago

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

2.11.1

Web app

Sign-in users and call web APIs

Web API

Protected web APIs (validating tokens)

Token cache serialization

In-memory caches

Description

Seeing authority_tenant_specified_twice error during token acquisition from v2.0 authority using TokenAcquirer, This is in PPE.

Reproduction steps

Acquire token through TokenAcquirer.GetTokenForAppAsync and provide v2.0 authority in IdentityApplicationOptions while creating TokenAcquirer as below.

                    var microsoftIdentityApplicationOptions = new MicrosoftIdentityApplicationOptions();
                    microsoftIdentityApplicationOptions.Authority = <V2Authority>;

                    tokenAcquirer = TokenAcquirerFactory.GetTokenAcquirer(microsoftIdentityApplicationOptions);

Error message

No response

Id Web logs

No response

Relevant code snippets

Provided in reproduction steps

Regression

No response

Expected behavior

Should return a app token.

jennyf19 commented 1 year ago

will be fixed in SAL @sruke FYI