Me sale este error
irb(main):006:0> token = client.password.get_token('eduardo123', 'eduardo123')
Traceback (most recent call last):
8: from /usr/local/bin/irb:23:in `<main>'
7: from /usr/local/bin/irb:23:in `load'
6: from /usr/local/lib/ruby/gems/2.7.0/gems/irb-1.2.7/exe/irb:11:in `<top (required)>'
5: from (irb):5
4: from (irb):6:in `rescue in irb_binding'
3: from /usr/local/lib/ruby/gems/2.7.0/gems/oauth2-1.4.4/lib/oauth2/strategy/password.rb:23:in `get_token'
2: from /usr/local/lib/ruby/gems/2.7.0/gems/oauth2-1.4.4/lib/oauth2/client.rb:147:in `get_token'
1: from /usr/local/lib/ruby/gems/2.7.0/gems/oauth2-1.4.4/lib/oauth2/client.rb:120:in `request'
OAuth2::Error (unsupported_grant_type: The authorization grant type is not supported by the authorization server.)
{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server."}
irb(main):006:0> token = client.password.get_token('eduardo123', 'eduardo123')
Traceback (most recent call last):
8: from /usr/local/bin/irb:23:in `<main>'
7: from /usr/local/bin/irb:23:in `load'
6: from /usr/local/lib/ruby/gems/2.7.0/gems/irb-1.2.7/exe/irb:11:in `<top (required)>'
5: from (irb):5
4: from (irb):6:in `rescue in irb_binding'
3: from /usr/local/lib/ruby/gems/2.7.0/gems/oauth2-1.4.4/lib/oauth2/strategy/password.rb:23:in `get_token'
2: from /usr/local/lib/ruby/gems/2.7.0/gems/oauth2-1.4.4/lib/oauth2/client.rb:147:in `get_token'
1: from /usr/local/lib/ruby/gems/2.7.0/gems/oauth2-1.4.4/lib/oauth2/client.rb:120:in `request'
OAuth2::Error (unsupported_grant_type: The authorization grant type is not supported by the authorization server.)
{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server."}