Code Monkey home page Code Monkey logo

Comments (3)

hamxashahid avatar hamxashahid commented on August 16, 2024 5

Thanks alot for your reply,

Yes I went through the gem's code and figured out correct config for issuer and discovery options; and it was all pretty smooth after that;

There are a couple of things I found and would like to highlight:

1 - The name attribute is not arbitary and needs to be :openid_connect otherwise it wont work; or devise would route to 'users/auth/:provider' rather than 'users/auth/openid_connect';
2 - The issuer property is very important and it should exactly match the provider's issuer link;
3 - The discovery option needs to be set to true if you face any JWT decode errors;

If you can kindly update the readme then I am sure somebody else's time would be saved;

Closing the issue :)

Cheers.

from omniauth_openid_connect.

m0n9oose avatar m0n9oose commented on August 16, 2024

Hey @hamxashahid

Not sure if I can help you without seeing the code and test application.

First of all, I have checked my configuration and noticed that my config has issuer but not in client_options:

name: :keycloak,
scope: Array(Quokka.config[:scope]),
response_type: :code,
discovery: true,
issuer: File.join(Quokka::Base.base_uri.to_s, 'auth', 'realms', 'master'),
client_options: Quokka.config

I would suggest to double check your configuration and read this to check your config structure and default values

P.S. Quokka is a proprietary tool, so don't waste your time looking for it

from omniauth_openid_connect.

ssoulless avatar ssoulless commented on August 16, 2024

@hamxashahid I see a problem, you said that name attribute needs to be :openid_coonnect in order to work properly, but what if you want to use the gem with more providers that use OpenID?

from omniauth_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.