AppModelv2-NativeClient-DotNet icon indicating copy to clipboard operation
AppModelv2-NativeClient-DotNet copied to clipboard

Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.

Open vkpalani82 opened this issue 6 years ago • 1 comments
trafficstars

i am getting below error after setting up all the steps . Please let me know anything i am missing ?

Loginissue

vkpalani82 avatar May 06 '19 12:05 vkpalani82

I am in the same situation having followed all the guidance provided.

// Startup.Auth.cs

public void ConfigureAuth(IAppBuilder app)
        {
            var tvps = new TokenValidationParameters
            {

                ValidAudience = ConfigurationManager.AppSettings["ida:Audience"],

				// Changed from false
                ValidateIssuer = true,

				// Field added with Tenant ID for issuer 
				ValidIssuer = "https://sts.windows.net/{ My Single Tenant ID }/"
			};

            app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
            {
                AccessTokenFormat = new JwtFormat(tvps, new OpenIdConnectCachingSecurityTokenProvider("https://login.microsoftonline.com/{ 
My Single Tenent ID  }/v2.0/.well-known/openid-configuration")),
            });
        }
// Web.config
<appSettings>
    <add key="ida:Tenant" value="{ My Tenant ID }"/>
    <add key="ida:Audience" value="{ App registration ID }"/>
  </appSettings>

james-innes avatar Oct 29 '19 15:10 james-innes