Giter Club home page Giter Club logo

Comments (4)

gastonrey avatar gastonrey commented on July 28, 2024

Am having problems to login via user/password due to the deprecated 'Connection' key, it's now realm, so I have changed the login method to:

request_params = { 
   client_id:     @client_id, 
   client_secret: @client_secret, 
   username:      username, 
   password:      password, 
   scope:            options.fetch(:scope, 'openid'), 
   realm:            connection_name, 
   grant_type:    options.fetch(:grant_type, 'password'), 
   id_token:      id_token, 
   device:        options.fetch(:device, nil) 
 } 

Replaced connection key by realm.

And then at my login request the grant-type is supposed to be passed as:

grant_type: 'http://auth0.com/oauth/grant-type/password-realm'

Just inside the options object. Would probably be a good idea to leave it as the default value when user/password login.

from ruby-auth0.

joshcanhelp avatar joshcanhelp commented on July 28, 2024

Apologies for the late reply here ... the auth endpoints module in this SDK is getting an overhaul for the next release. We'll be deprecating (not removing yet) a few methods, this one included, and replacing with ones that more closely match how the endpoints work currently. All of the concerns here will be addressed.

Thank you for the report!

from ruby-auth0.

j-collier avatar j-collier commented on July 28, 2024

We'll be deprecating (not removing yet) a few methods, this one included, and replacing with ones that more closely match how the endpoints work currently. All of the concerns here will be addressed.

Are the plans for this public? I'd love to help tackle this personally.

from ruby-auth0.

joshcanhelp avatar joshcanhelp commented on July 28, 2024

@j-collier - I appreciate the offer! The plans are not public but only because our tracking is done in the same system as our product. Happy to share what we have in mind remaining.

Much of this is complete, some of which has already been merged:

  • #129 (merged) adds a formal client credentials grant
  • #130 (merged) adds a /userinfo call that works (have to include an access token)
  • #131 (in review) will add a method to perform an authorization code exchange
  • #133 (in review) will add a method that does a more complete resource owner grant

The remaining methods that have not been started:

  • A method to replace authorization_url ... current one works but could be structured better. It should also generate a state automatically. Replace with a method that does both and adds audience as a first-class parameter.
  • A method to use a refresh token to get a new access token (#111).

If you want to take on one of those, I would be happy to guide and review! At the moment, we don't have a contribution guide (on my list to put one of those together soon) but a few notes:

If you want to take one or the other or both (separate PRs please), just let me know and I'll hold off on my end. I'll work on the contribution guide instead 😄

Thank you in advance!!

from ruby-auth0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.