Auth0 Home Blog Docs

Does Auth0.js implement standard OIDC (i.e. can I use it against any other OpenID Connect server)?

Hello community,

I have the requirement to add generic OIDC (OpenID Connect) authentication to an Hapi.js app.

I saw this blog post that uses your Hapi module to connect to Auth0 API (where it says " Aside: Hapi Authentication with Auth0").

There is this snippet:

<script src="https://cdn.auth0.com/js/auth0/9.0.0/auth0.min.js"></script>
...
var webAuth = new auth0.WebAuth({
    domain:       'YOUR_DOMAIN',
    clientID:     'YOUR_CLIENT_ID',
    responseType: 'token',
    redirectUri: 'YOUR_REDIRECT_URI'
});

This is great to connect to to Auth0, but my question is: if I develop the feature against auth0 are we going to be locked in, or does this work also with - say - Keycloak (configured as OpenID Connect)?

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?

Yes, I would appreciate to still receive an answer. If I use that library in my web app, can I tell my users it’s compatible also with other implementations of OIDC like the open source Keycloak?