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:
- Create an app
- Configure smtp and setup password email
- Create API key with
user/registration
POST permission - 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"
}
}
- Go to setup email on the email receiver
- Open URL in private tab (Just in case if you are logged)
- Get the error
missin_redirect_uri
I hope this information is useful for someone ^^