Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Other OIDC Providers #45

Open
stefanosbou opened this issue Jan 22, 2025 · 5 comments
Open

Compatibility with Other OIDC Providers #45

stefanosbou opened this issue Jan 22, 2025 · 5 comments

Comments

@stefanosbou
Copy link

stefanosbou commented Jan 22, 2025

First off, thanks for your effort in building and maintaining this library! It looks like a great solution for handling authentication in SPA applications. I’m exploring the use of this library for authentication in a Vite-powered SPA. While the documentation emphasizes Keycloak integration, I’m curious if this library also supports other OIDC providers such as Clerk or Auth0.

To test compatibility, I attempted to set up a proof of concept using the OIDC-SPA + Tanstack-router Starter template. However, I encountered the following error during initialization:

Initialization error: The OIDC client 'CLIENT_ID' seems to be misconfigured on your OIDC server. If you are using Keycloak you likely need to add "http://localhost:5173/*" to the list of Valid Redirect URIs in the 'CLIENT_ID' client configuration.  
More info: https://docs.oidc-spa.dev/v/v5/resources/usage-with-keycloak  
Silent SSO timed out after 5000ms.

Is this library designed to work with other OIDC providers? If so, are there any additional configuration steps required to adapt it to providers other than Keycloak?

Thanks in advance for your insights!

@garronej
Copy link
Collaborator

garronej commented Jan 22, 2025

Hello @stefanosbou,

Thank you for your kind words!

There are some known compatibility issues with certain OIDC providers in the current version of oidc-spa. The good news is that v6 resolves all of these issues. I’m actively working on it, and the release should be available soon.

You can follow the progress here: GitHub Pull Request #44.

@garronej
Copy link
Collaborator

garronej commented Jan 22, 2025

The error you’re encountering is specifically resolved in v6. Additionally, I’ll include documentation on configuring the authentication provider that isn't specific to keycloak.

@stefanosbou
Copy link
Author

Thanks for the quick response @garronej and for sharing the update on v6! It’s great to hear that the upcoming release will address these compatibility issues. I’ll keep an eye on #44 and look forward to the new version. Appreciate your work on this!

Let me know if there's anything I can do to help test v6 when it’s ready.

Thanks again! 😊

@garronej
Copy link
Collaborator

Well if you can provide a quick feedback confirming that everything works ok with the OIDC provider you are using it'll be great :)
I'll let you know when it's ready

@garronej
Copy link
Collaborator

Hello @stefanosbou,
I have a working candidate for v6. I have to perform some aditional testing but I should be able to release in the next day or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants