keycloakify / oidc-spa

Openid connect client for Single Page Applications
https://www.oidc-spa.dev
MIT License
61 stars 7 forks source link

Mobile usage - Ionic / Capacitor #37

Open javialon26 opened 1 week ago

javialon26 commented 1 week ago

Hey, nice initiative, it's great to have modern options because keycloak-js is heavy and will be deprecated. Thanks.

Do you consider the possibility of adding adapters to use the library in other contexts, like mobile apps? In this case, we need to open an in-app browser instead of redirecting the user. I have created an adapter for Keycloak-JS for Capacitor, using the Capacitor App plugin (listener for app URL open) and the Capacitor Browser (listener for browser closed by user) but it's something internal.

Let me know what's are your thoughts.

garronej commented 1 week ago

Hello @javialon26,

Thanks!

At the moment this library makes the assumption that it is being run in a browser environement and no effort has been made to support other runtime.
It is at the moment and OIDC client for Single Page Web Application.

I'm open to contribution but I don't have any experience with Ionic. I don't know exactly what would need to be abstracted away to make this work.