Android authentication on Keycloak with identity providers like Google and Facebook

别等时光非礼了梦想. 提交于 2021-01-29 17:34:07

问题


I am creating a native android application and I am using keycloak authentication, because my web app and my API is already configured with keycloak. I setup Facebook and Google as identity providers for keycloak but now I don't know how I am supposed to configure it in the Android application.

For the general authentication I am using retrofit with rest calls to get the token and after that I am storing the token in Android Account manager.

I want my android app to successfully authenticate via Facebook or Google through Keycloak. Any suggestions, please?


回答1:


The answer is that I should use the keycloak functionality for token exchange from external to internal. See for more details: https://github.com/keycloak/keycloak-documentation/blob/master/securing_apps/topics/token-exchange/token-exchange.adoc.



来源:https://stackoverflow.com/questions/56633910/android-authentication-on-keycloak-with-identity-providers-like-google-and-faceb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!