Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post_password_change results in payload validation error #84

Closed
andrewoconnor opened this issue Mar 22, 2017 · 1 comment
Closed

post_password_change results in payload validation error #84

andrewoconnor opened this issue Mar 22, 2017 · 1 comment

Comments

@andrewoconnor
Copy link

I get this error if I call post_password_change with or without a String password:

{
  "statusCode"=>400, 
  "error"=>"Bad Request", 
  "message"=>"Payload validation error: 'Expected type string but found type object' on property new_password (The password to set for the user once the ticket is used).",
  "errorCode"=>"invalid_body"
}

Here is how I am calling the method:

res = auth0_client.post_password_change(
  user_id: user.user_id,
  result_url: ENV['AUTH0_CALLBACK_URL']
)

If I pass a new_password parameter I get the same exact error

res = auth0_client.post_password_change(
  new_password: 'secret',
  user_id: user.user_id,
  result_url: ENV['AUTH0_CALLBACK_URL']
)
@andrewoconnor
Copy link
Author

False alarm! Turns out the rubygems version of this gem is out of date. Changing my Gemfile to:

gem 'auth0', git: '[email protected]:auth0/ruby-auth0.git'

Pulls latest code and it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant