Giter Site home page Giter Site logo

Comments (6)

frederikprijck avatar frederikprijck commented on September 18, 2024 1

https://github.com/panva/oauth4webapi is probably a good one if u look for an OIDC compliant SDK.

from auth0-spa-js.

frederikprijck avatar frederikprijck commented on September 18, 2024

Thanks for reaching out.

In my case 'authorize' endpoint is 'oauth2/authorize' and 'oauth/token' is 'ouath2/token'.

Are you using Auth0 or some other Identity Provider?

In case you are using another Identity Provider, please understand that this SDK is made for Auth0 and has internal functionality specifically designed to work for Auth0 and will not work with other identity providers.

This is also why we have not made the endpoint URLs configurable, as we do not currently support other identity providers.

If you are using Auth0, can you elaborate on why your URLs are different from the ones we use defaullt?

from auth0-spa-js.

johnny-the-coder avatar johnny-the-coder commented on September 18, 2024

Hi Frederik,

I guess we can both agree that the library would be much more versatile and useful when it would consider ./well-known/openid-configuration.

I searched in the web and there are people struggling with the exact same problem, e.g.:
https://stackoverflow.com/questions/68187471/why-does-google-use-oauth2-auth-and-auth0-spec-uses-oauth2-authorize

I think it would not make a huge effort to implement the necessary changes.
So why not make a much more powerful open-source library?

from auth0-spa-js.

frederikprijck avatar frederikprijck commented on September 18, 2024

I guess we can both agree that the library would be much more versatile and useful when it would consider ./well-known/openid-configuration.

I disagree. I agree it would be better if it was more OpenID compliant and not Auth0 focussed, but that is not solved by simply using the well known.

So why not make a much more powerful open-source library?

That would make it look as if we support other identity providers, which we do not because of other internal stuff that depends on Auth0 (not just the endpoint urls). So not supporting other endpoint urls is deliberate for now, even though I would love to see it evolve to be more OIDC compliant as well, but that is not something we currently plan to do.

I searched in the web and there are people struggling with the exact same problem, e.g.:

This is an Auth0 specific SDK, and we nowhere mention it works with others or is OIDC compliant. I understand the issue, but it's not the correct expectation when using our SDK in its current state.

This is also mentioned on the SO link u shared:

Generally though I avoid vendor specific libraries for this type of reason.

from auth0-spa-js.

johnny-the-coder avatar johnny-the-coder commented on September 18, 2024

ok, thanks for the information, I will search for another library then.

from auth0-spa-js.

johnny-the-coder avatar johnny-the-coder commented on September 18, 2024

closing for now

from auth0-spa-js.

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.