Skip to content

Improve error for invalid redirect URI #2264

@jonasbadstuebner

Description

@jonasbadstuebner

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Description

It took me some time to find out that I did not have the redirect URI allow-listed on the Hanko Cloud Console.
For (at least some) other input fields, the error is returned attached to the input that had incorrect inputs, for example (this is from a different 400 response):

"username": {
  "name": "username",
  "type": "string",
  "min_length": 3,
  "max_length": 32,
  "required": true,
  "error": {
    "code":"value_too_short_error",
    "message":"The value is too short."
  }
}

(this is not explained in the documentation by the way, despite it being very useful)

Describe your ideal solution

The quickest win would be to attach an error to the redirect_to input. Despite the field being hidden, the error code can be useful to find out what went wrong.

Workarounds or alternatives

No response

Hanko Version

Current Cloud Console

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions