-
Notifications
You must be signed in to change notification settings - Fork 245
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
sample keycloak integration #506
Comments
Hello, I'm encountering an issue with Keycloak where I cannot log out. Could you please help guide me through this? |
hi, after long research. I notice that the proper implementation of keycloak in flutter is:
For security reason, we dont want store client secret in mobile app thats why:
|
Thank you for your reply。
I confirm the authorization_endpoint\token_endpoint\end_session_endpoint config is correct ,but I am not sure postLogoutRedirectUrl how to set , i give _postLogoutRedirectUrl = 'com.domain.yourapp:/' and keycloak client setting page is " Valid post logout redirect URIs: |
As I mentioned, no matter login, refresh, or logout all shall implement at server side cause keep secret in mobile app is bad. When you need to revoke your secret you will have to republish your app and request all user update app. At the time your app malfunction and will be your nightmare. Anyhow, you can simply delete your token without run logout isn't it? |
Sorry, I need to ask one more question. |
i not so sure what cause that, maybe 'com.domain.yourapp:/'? |
you means add 'com.domain.yourapp:/' to CSP config? |
Can someone provide a simple but complete example for login and sign-in from a mobile app to keycloack? |
i think the provided example very bad for keycloak user, so I contribute some example of setting for others people to refer, I hope you guys can prepare better sample for community.
The text was updated successfully, but these errors were encountered: