Skip to content

CreateUserRequestContent.builder() doesn't have user creation fields interfaces #819

@krrrr38

Description

@krrrr38

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

auth0-java v3 expect following interface under MIGRATION_GUIDE.md.

// v3 type construction
CreateUserRequestContent request = CreateUserRequestContent
    .builder()
    .email("test@example.com")
    .connection("Username-Password-Authentication")
    .password("secure-password")
    .build();

But, when calling CreateUserRequestContent.bulder, CreateUserRequestContent.ConnectionStage only have connection and from methods. There is no email, password and connection methods.

Image

Reproduction

  1. add dependency 3.1.0
  2. try following code
  3. then compile error.
// v3 type construction
CreateUserRequestContent request = CreateUserRequestContent
    .builder()
    .email("test@example.com")
    .connection("Username-Password-Authentication")
    .password("secure-password")
    .build();

Additional context

No response

auth0-java version

3.1.0

Java version

21

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