Skip to content
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

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. #16

Open
vkpalani82 opened this issue May 6, 2019 · 1 comment

Comments

@vkpalani82
Copy link

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

Loginissue

@james-innes
Copy link

james-innes commented Oct 29, 2019

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants