Ich habe ein Abonnement für Azure und eine bereits entwickelte Anwendung, ich versuche, Azure AD als Authentifizierungsmechanismus zu verwenden.Fehler mit Azure AD SingleSignOn
Ich habe die Anwendung in Azure erstellt, Azure AD als Authentifizierungsmechanismus hinzugefügt, und wenn ich versuche, mich anzumelden, erhalte ich diesen Fehler.
AADSTS65005: Die App benötigt Zugriff auf einen Dienst ("http://rts.powerapps.com"), die Ihre Organisation "123-32323-323232-3233" nicht abonniert hat oder aktiviert. Wenden Sie sich an Ihren IT-Administrator , um die Konfiguration Ihrer Dienstabonnements zu überprüfen.
Dies ist meine Startup-Klasse.
public partial class Startup
{
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"];
private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
private static string tenant = ConfigurationManager.AppSettings["ida:Tenant"];
private static string postLogoutRedirectUri = ConfigurationManager.AppSettings["ida:PostLogoutRedirectUri"];
string authority = String.Format(CultureInfo.InvariantCulture, aadInstance, tenant);
public void ConfigureAuth(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions());
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
ClientId = clientId,
Authority = authority,
PostLogoutRedirectUri = postLogoutRedirectUri,
RedirectUri = postLogoutRedirectUri,
Notifications = new OpenIdConnectAuthenticationNotifications
{
AuthenticationFailed = context =>
{
context.HandleResponse();
context.Response.Redirect("/Error?message=" + context.Exception.Message);
return Task.FromResult(0);
}
}
});
}
}
Irgendwelche Ideen?
EDIT 1:
Nach einiger App von meiner erforderlichen Berechtigung zu entfernen, die nun gelöscht schienen ich diesen Fehler.
EDIT 2:
Feste nach dem Entfernen und Hinzufügen der Berechtigungen wieder.
Danke, es ist mein erster Beitrag. –
Sie sollten die [Tour] und lesen [fragen], bevor Sie Fragen stellen –