# How to use keycloak for my flow - social login with internal tokens?

**URL:** <https://forum.keycloak.org/t/how-to-use-keycloak-for-my-flow-social-login-with-internal-tokens/1411>\
**Category:** Getting advice\
**Tags:** authentication, oidc\
**Created:** [February 26, 2020, 2:59pm UTC](https://forum.keycloak.org/t/how-to-use-keycloak-for-my-flow-social-login-with-internal-tokens/1411 "2020-02-26T14:59:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msh](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@msh](https://forum.keycloak.org/u/msh)\
**Post date:** [February 26, 2020, 2:59pm UTC](https://forum.keycloak.org/t/how-to-use-keycloak-for-my-flow-social-login-with-internal-tokens/1411/1 "2020-02-26T14:59:19Z")

</div>

I am trying to migrate from the old spring libraries which are now deprecated and new to keycloak. I have a specific workflow and would like to know how to achieve it with keycloak, since I can’t find my specific use case in the documentation.

The flow I’m looking for is:

1. My public webapp or my native mobile app has a social login. My webapp/mobile-app will make the connection to the social provider and will get the authorization code it self
2. I then want to send the authorization code to keycloak, where users will be logged in (+registered for the first time).
3. I want keycloak to then return a token for me. That token is my platform token, and can be used by my other micro-services without having to contact any other service, just by looking at the token.

I tried to look at the social provider flow, but I’m still not sure how to do it. What am I looking for specifically in keycloak then?

---

<div class="post-metadata">

**Author:** ![mohankumar.d](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mohankumar.d](https://forum.keycloak.org/u/mohankumar.d)\
**Post date:** [November 2, 2020, 1:50pm UTC](https://forum.keycloak.org/t/how-to-use-keycloak-for-my-flow-social-login-with-internal-tokens/1411/2 "2020-11-02T13:50:18Z")

</div>

I am also looking for the same flow, let me know if you got any progress on your development. Help me on this.
