Skip to content

AuthApi.authorizeUrl Doesn't encode redirectUrl #390

@btilford

Description

@btilford

Describe the problem you'd like to have solved

When calling AuthApi.authorizeUrl it creates an invalid AuthorizationUrlBuilder instance because it does not encode the redirectUrl parameter.

On AuthApi.java L202 it requires that it be a valid (unencoded) URL but then in AuthorizedUrlBuilder L43 it is added to the query parameters as an encoded query parameter (without making sure it is encoded).

Describe the ideal solution

Either AuthorizedUrlBuilder or AuthApi should encoded the redirectUri or should call the OkHTTP addQueryParameter instead which will handle encoding it instead of addEncodedQueryParameter which expects it to be pre-encoded.

Alternatives and current work-arounds

Manually building the URL without auth0-java utilities.

Additional information, if any

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions