GithubHelp home page GithubHelp logo

Comments (5)

nbulaj avatar nbulaj commented on July 19, 2024

Hey @tb582

What is openid_configuration inside Doorkeeper configuration? 🤔 We don't have such option (even in the repo https://github.com/doorkeeper-gem/doorkeeper-openid_connect/search?q=openid_configuration ). Where did you find it?

But you must have something like this:

# config/initializers/doorkeeper_openid_connect.rb
Doorkeeper::OpenidConnect.configure do
  # ...
end

from doorkeeper-openid_connect.

nbulaj avatar nbulaj commented on July 19, 2024

Also enforce_configured_scopes config option shouldn't be inside resource_owner_authenticator block, but maybe you just copied it wrong

from doorkeeper-openid_connect.

tb582 avatar tb582 commented on July 19, 2024

hmm are there working configs of both

doorkeeper_openid_connect.rb

and

doorkeeper.rb

from doorkeeper-openid_connect.

nbulaj avatar nbulaj commented on July 19, 2024

Hey, not sure I understood your question. You can find config examples both for Doorkeeper and OpenID Connect (they have their own configs)

Example:

Doorkeeper

# config/initializers/doorkeeper.rb
Doorkeeper.configure do
  optional_scopes :openid
  default_scopes :read
  resource_owner_authenticator do
    if params[:current_user].present?
      User.find(params[:current_user])
    else
      redirect_to('/login')
      nil
    end
  end

  grant_flows %w[authorization_code client_credentials implicit_oidc]
end

Doorkeeper OpenID Connect

# config/initializers/doorkeeper_openid_connect.rb
Doorkeeper::OpenidConnect.configure do
  issuer 'dummy'
  subject_types_supported [:public]
  response_types_supported [:code]
  jwks_uri '<removed>'
end

from doorkeeper-openid_connect.

nbulaj avatar nbulaj commented on July 19, 2024

OK closing this one as it has invalid configurations. Please see examples above and in the projects README / Wiki

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.