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").
https://auth0.com/blog/hapijs-authentication-secure-your-api-with-json-web-tokens/
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?
Hey there terribly sorry for the delay in response once again but the number of incoming questions is simply too big for three people team. Once more sorry for the inconvenience! Let’s get back to the core issue. I discussed it finally with the team and they said to make use of that doc:
The team cannot say if it will work with Keycloak for example as we don’t have any content or stack precisely aimed at integrating with Keycloak so it should be best to reach out to them and ask them about it. Once more sorry for such delayed response!