FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. bergraan
    3. Best
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by bergraan

    • RE: registration question sendSetPassword flow

      Hi again, this is me. Maybe i write this for no one, but also I want to document for other beginners or Core developers

      I found a possible solution to the problem. If remove client_id from URL FusionAuth allows me to change the password, I think this is wrong, in the documentation didn't say anything about that, possible bug?

      Example good URL --> http://localhost:9011/password/change/<code>?<tenan_id>
      Example bad URL --> http://localhost:9011/password/change/<code>?client_id=<client_id>&<tenan_id>

      Bad URL is how FusionAuth send to the new users when I set "sendSetPasswordEmail" to true with "setup password" template

      Steps to reproduce:

      1. Create an app
      2. Configure smtp and setup password email
      3. Create API key with user/registration POST permission
      4. Create a new user with sendSetPassword to true. Example payload:
      {
        "registration": {
          "applicationId": <application-id>,
          "data": {
            "displayName": "Johnny",
            "favoriteSports": [
              "Football",
              "Basketball"
            ],
          },
          "id": user_uuid,
          "preferredLanguages": [
            "en",
            "fr"
          ],
          "timezone": "America/Chicago",
          "username": "johnny123",
          "usernameStatus": "ACTIVE"
        },
        "sendSetPasswordEmail": true,
        "skipVerification": false,
        "user": {
          "birthDate": "1976-05-30",
          "data": {
            "displayName": "Johnny Boy",
            "favoriteColors": [
              "Red",
              "Blue"
            ]
          },
          "email": "<email>",
          "firstName": "John",
          "fullName": "John Doe",
          "id": <user_uuid>,
          "imageUrl": "http://65.media.tumblr.com/tumblr_l7dbl0MHbU1qz50x3o1_500.png",
          "lastName": "Doe",
          "middleName": "William",
          "mobilePhone": "303-555-1234",
          "preferredLanguages": [
            "en",
            "fr"
          ],
          "timezone": "America/Denver",
          "usernameStatus": "ACTIVE",
          "username": "johnny123"
        }
      }
      
      1. Go to setup email on the email receiver
      2. Open URL in private tab (Just in case if you are logged)
      3. Get the error missin_redirect_uri

      I hope this information is useful for someone ^^

      posted in General Discussion
      B
      bergraan