-
Notifications
You must be signed in to change notification settings - Fork 232
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
Questions for Vue3 - Pinia Store - Keycloak - Capacitor Example #1548
Comments
@Badisi thank you for the fast replay. But i dont like its again another wrapper tbh. But it seems that there is currently no solution to achive that without a wrapper right? i appreciate your work - does your solution work with exactly my prerequisites? And how do i implement it? |
"Crypto.subtle is available only in secure contexts (HTTPS)." This error makes it impossible to test oidc in by using local ips in a private network (without setting up certificates and more). |
I was not intended to make you use my wrapper, but rather direct you towards a concrete example. But if you do choose to use my wrapper, please let me know and I will be happy to help |
I try two different approaches
|
I already created a hybrid app by using angular. I used this lib https://github.com/manfredsteyer/angular-oauth2-oidc and it works perfectly - but it seems this lib and vue seems to work different... |
I think the only thing i need from now is, to get the token from keycloak to the usermanager. Everything works but on redirect the usermanager cant retrieve the token. This App uses history mode but however the url from android deeplink is converted to localhodst:5200/#/login?state... It seems the usermanager cant work with the hash and i dont know how to solve it |
Hello!
I try to connect Keycloak with my WebApplication. My Goal is to use oidc-client.ts for web and (capacitor) app and also to make this here available for inspiration (copy&paste) how to do it.
Still now i got several problems/questions
Web:
W1. SSO doesnt work: On reloading the page (F5) i get "OIDC initialization error: Error: No state in response" - How can i log in silently too or login with the saved token?
W2. Is the current code well implemented or there are some issues in general?
Capacitor
C1. By login (signInRedirect) i get the "OIDC login error: Error: Crypto.subtle is available only in secure contexts (HTTPS)." How can i avoid this?
C2. How can store the token (offline_access) to achieve that you dont need to regularly log in?
I already know, that in the current state the AppListener and redirect to/from mayap:// is missing. Would be awesome if we can create a full example.
AuthStore
AuthService
The text was updated successfully, but these errors were encountered: