Quand je tente de me connecter mon client avec identityServer, journal serveur show message suivant:identityServer 3 message d'erreur client de connexion: "client inconnu ou non activée"
- [Erreur] « client inconnu ou non activées: cliente1 « *
c'est mon OpenIdConnectAuthenticationOptions:
public void Configuration(IAppBuilder app)
{
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "Cookies"
});
app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
{
ClientId = "cliente1",
Authority = "https://localhost:44333/core",
RedirectUri = "http://localhost:57598/",
ResponseType = "id_token",
Scope = "openid email",
UseTokenLifetime = false,
SignInAsAuthenticationType = "Cookies",
});
}
et voici mon identityServer configuration client:
new Client{
ClientName = "cliente1",
Enabled = true,
ClientId = "cliente1",
ClientSecrets = new List<Secret>
{
new Secret("secret".Sha256())
},
Flow = Flows.Implicit,
//RequireConsent = true,
//AllowRememberConsent = true,
RedirectUris = new List<string> {
"http://localhost:57598/"
},
PostLogoutRedirectUris = new List<string>{
"http://localhost:57598/"
},
AllowedScopes = new List<string>
{
Constants.StandardScopes.OpenId,
Constants.StandardScopes.Email,
//Constants.StandardScopes.OfflineAccess,
//"read",
//"write",
"webapi"
},
AccessTokenType = AccessTokenType.Reference,
IdentityTokenLifetime = 360,
AccessTokenLifetime = 360
},
Quel pourrait être le problème? Merci d'avance
activer la journalisation première: https://identityserver.github.io/Documentation/docsv2/configuration/logging.html journalisation – leastprivilege
est activé dans mon serveur et le fichier journal show message suivant: [Erreur] « client inconnu ou non activé: cliente1 "* – Sem