Error map
Bad credentials Spring Security: BadCredentialsException: Bad credentials
Authentication · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (12)
[invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response
Spring's OAuth2 client could not exchange the authorisation code for a token — the token request failed or the response could not…
AccessDeniedException: Access is denied (Spring Security 403)
The user is authenticated but lacks the role or authority required for the endpoint, so Spring returns 403.
[authorization_request_not_found] Spring OAuth2 login callback
Spring could not find the saved authorisation request when the provider redirected back, so the login cannot be completed.
RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type and content type
Spring's RestTemplate could not convert the response body to the Java type you asked for.
{"detail":"No active account found with the given credentials"}
Simple JWT's login endpoint did not find an active user matching the username and password.
Spring: Required request parameter 'x' is not present (400)
A mandatory `@RequestParam` is missing.
Spring: HttpMediaTypeNotSupportedException: Content type 'text/plain' not supported (415)
The controller does not consume the Content-Type sent.
IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"
Spring Security's delegating encoder expects stored passwords to start with `{id}` such as `{bcrypt}`; yours has no prefix.
WARN: Encoded password does not look like BCrypt
BCryptPasswordEncoder was asked to match a stored value that is not a BCrypt hash, so login always fails.
Full authentication is required to access this resource (401)
The request reached a protected Spring endpoint without valid credentials, so the entry point answers 401.
Keycloak: invalid_grant — Invalid user credentials
Keycloak rejected the username/password in a password grant.
Spring: HttpRequestMethodNotSupportedException: Request method 'POST' not supported (405)
The path exists but not for that HTTP method.
Two steps away (23)
OAuth 2.0 Error: invalid_grant
The authorization code, refresh token or credentials sent to the token endpoint are invalid, expired, already used or were issued…
OAuth Error: redirect_uri_mismatch
The redirect URI in your OAuth request doesn’t exactly match one registered for the client in the provider’s console.
OAuth 2.0 Error: invalid_client
The OAuth server couldn’t authenticate your application — wrong client ID/secret, wrong auth method, or the client doesn’t exist…
HTTP 403 Forbidden
The server understood the request but refuses to authorize it — you (or the server process) are not allowed to access this resour…
PERMISSION_DENIED: The caller does not have permission (insufficient permissions)
You are authenticated, but your identity isn’t allowed to perform this action on this resource.
401 because the Authorization header is stripped
The client sends credentials, but a proxy, CGI/FastCGI setup or redirect removes the Authorization header before your app sees it.
OAuth 2.0 Error: invalid_scope / insufficient_scope
The requested scope is unknown or not allowed for this client — or the token lacks the scope the API endpoint requires.
OAuth 2.0 Error: access_denied (The user or authorization server denied the request)
The authorization request was refused — the user clicked Cancel/Deny on the consent screen, or a policy denied access.
OAuth 2.0 Error: unauthorized_client (client not allowed to use this grant type)
The client exists, but isn’t allowed to use the requested flow (grant type or response type).
201 Created without a Location header (clients can't find the new resource)
The API created a resource but doesn't say where it lives, so clients must guess or re-query.
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Your code called `response.json()` but the API returned an HTML page (usually an error page), not JSON.
org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized
The API answered with a 4xx status and Spring's RestTemplate converts that into an exception.
bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required
bcrypt.compare/hash received undefined — the password field or stored hash wasn’t passed.
AWS Cognito: NotAuthorizedException: Incorrect username or password
Cognito rejected the sign-in — wrong credentials, a disabled user, an auth flow not enabled on the app client, or an expired refr…
AWS Cognito: NotAuthorizedException: Unable to verify secret hash for client x
The app client has a client secret, so every request needs a SECRET_HASH — and it’s missing or computed wrongly.
API Error: Missing required parameter (parameter_missing / "x" is required)
The API rejected the request because a field it requires — in the query string, path, headers or JSON body — wasn’t sent or was e…
AWS Cognito: InvalidPasswordException: Password did not conform with policy
The password does not meet the user pool's password policy.
{"message":"Missing Authentication Token"} / No authorization token was found
The request reached a protected endpoint without credentials — or, on AWS API Gateway, it hit a path/method that doesn’t exist.
401 Unauthorized without WWW-Authenticate header
The server answered 401 but didn't say which authentication scheme to use.
401 Bearer error="invalid_token"
The API rejected the bearer token as expired, malformed, revoked or not meant for this API.
Keycloak: We are sorry... Invalid parameter: redirect_uri
The redirect_uri in the login request isn’t in the Keycloak client’s Valid Redirect URIs.
Keycloak: invalid_grant — Account is not fully set up
The user has pending required actions (verify email, update password, configure OTP), so non-interactive token requests (password…
Firebase Auth: auth/weak-password — Password should be at least 6 characters
The password doesn't meet Firebase's (or your project's) password policy.