FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    FusionAuth not registering user in multiple Applications (GO-Client)

    Scheduled Pinned Locked Moved
    General Discussion
    golang fusionauth registrations application
    1
    2
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      arihantverma52
      last edited by

      Hello,

      I am trying to use the go-client library to integrate fusionauth. Comments on the github repo (https://github.com/FusionAuth/go-client/blob/master/pkg/fusionauth/Client.go#L2761) say that if I only pass the UserRegistration object, the user will be registered for the application whose ID is provided.
      But when I am trying to implement the same workflow, I am getting the following error

      "You must specify either the [user.email] or [user.username] property. If you are emailing the user you must specify the [user.email]. user.password: You must specify the [user.password] property."

      This is how I am initializing the request for the API:

      fusionauthrequest := fusionauth.RegistrationRequest{
      Registration: fusionauth.UserRegistration{
      ApplicationId: applicationId,
      Username: request.Email,
      },
      }

      1 Reply Last reply Reply Quote 0
      • A
        arihantverma52
        last edited by

        Solution:

        https://github.com/FusionAuth/go-client/issues/48

        1 Reply Last reply Reply Quote 1
        • First post
          Last post