AppModelv2-NativeClient-DotNet
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.
trafficstars
i am getting below error after setting up all the steps . Please let me know anything i am missing ?
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>