keycloak Invalid parameter: redirect_uri
EDIT: DO NOT DO THIS IN PRODUCTION. Use this skill when the task matches the title above. Not for unrelated tools or errors; check the tool's own docs for those.
TL;DR
EDIT: DO NOT DO THIS IN PRODUCTION. Doing so creates a large security flaw. I have created my own realm apart from master.
The error, verbatim
Context: Stack Overflow #45352880 (top answer, 128 votes, 33 answers): I am trying to hit an endpoint from my API to authenticate a user from Keycloak, but it's giving me error Invalid parameter: redirect_uri on the Keycloak page. I have created my own realm apart from master. Keycloak is running on HTTP.Fix
[tryingToLearn (top answer)] What worked for me was adding wildchar '*'. Although for production builds, I am going to be more specific with the value of this field. But for dev purposes you can do this. Setting available under, keycloak admin console -> RealmName -> Cients -> ClientName. EDIT: DO NOT DO THIS IN PRODUCTION. Doing so creates a large security flaw.
Context: Stack Overflow #45352880 (top answer, 128 votes, 33 answers): I am trying to hit an endpoint from my API to authenticate a user from Keycloak, but it's giving me error Invalid parameter: redirect_uri on the Keycloak page. I have created my own realm apart from master. Keycloak is running on HTTP.
Matched source
Source: Published skill Original query: "keycloak Invalid parameter: redirect_uri" Key terms: invalid, keycloak, parameter, redirect
When to use this
- Use this when your task, error, or question matches the title above and the setup in the Fix section.
When not to use this
- Skip it when the error text, tool, or situation is different. Forcing a mismatched fix usually costs more time than searching again.
Compatibility
The original write-up does not pin tool versions. Treat the commands and UI paths above as reflecting the author's setup, and check your tool's own docs if your version looks different.