Invalid API Key provided by IApiKeyProvider. #5927
Unanswered
MeloHenrique
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've followed the documentation and I got my apiKey following #5450.
I am now trying to request the api with the token but I am always getting
My configuration is like the docs:
elsa.UseIdentity(identity => { identity.TokenOptions = options => options.SigningKey = "92459cd7842265516df5ffefb5dc99076c6dbc8d10748f0e34fe81392d932b58"; // This key needs to be at least 256 bits long. identity.ApiKeyOptions = options => { options.KeyName = "ApiKey"; options.SuppressWWWAuthenticateHeader = true; options.IgnoreAuthenticationIfAllowAnonymous = true; }; identity.UseAdminUserProvider(); });
elsa.UseDefaultAuthentication();
app.UseAuthentication(); app.UseAuthorization();
I am really confused and I cannot understand why I cant request the api, I don't even need authorization/authentication, at the moment I just needed to do a few requests to test some functionality.
Beta Was this translation helpful? Give feedback.
All reactions