GithubHelp home page GithubHelp logo

Comments (5)

toupeira avatar toupeira commented on July 1, 2024

@nov thanks for the report! You're right, this was just the easiest solution I could think of at the time to trigger a reauthorization (and thus explicit consent) in Doorkeeper, but it's definitely not very elegant ;-)

For now I've added a section about this to the README.

I'm not sure how to best approach this since the integration with the Doorkeeper gem is already very leaky. Let me know if you have an idea, otherwise I think I will just remove this code and return a consent_required error as suggested in the OIDC spec

from doorkeeper-openid_connect.

nov avatar nov commented on July 1, 2024

If you want to support prompt=consent in the gem, you’ll need to update doorkeeper gem itself (e.g., defining reauthorization_required?) so that you can call the method here to render :new
https://github.com/doorkeeper-gem/doorkeeper/blob/master/app/controllers/doorkeeper/authorizations_controller.rb#L27

from doorkeeper-openid_connect.

toupeira avatar toupeira commented on July 1, 2024

@nov thanks! Actually I can just call render :new directly in this context, this seems to work as expected. See #67

from doorkeeper-openid_connect.

nov avatar nov commented on July 1, 2024

Yeah, it also might be good enough.
I feel it’s a bit trickey though.

from doorkeeper-openid_connect.

toupeira avatar toupeira commented on July 1, 2024

@nov yeah I'm also unhappy with the whole approach of hooking into authenticate_resource_owner!, there's probably a way to do this more cleanly by using the validations in Doorkeeper::OAuth::PreAuthorization.

Anyway, I merged #67 now and released version 1.5.4 of the gem, let me know if you run into any problems!

from doorkeeper-openid_connect.

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.