Setting Up Keycloak and linkingšLinkedIn
The first thing you will want to do is create a realm for your applications and users.

You can read the docs and goof with the various option to know about the Keycloak but for our purposes let's just do this

Next thing is to create a new client with the following options
We will be running our flask application in port 5000
Client ID: whoamionlinkedin
Client Protocol: openid-connect
Access Type: public
Root URL: http://localhost:5000
Valid Redirect URIs: *
Admin URL: http://localhost:5000
Web Origins: http://localhost:5000
Let us now link LinkedIn to Keycloak go to https://www.linkedin.com/developers/ to create an app

Copy client ID and client secret and hop back to the Keycloak dashboard.
Go to the Identity Provider and select linked in.
Paste the client ID and Client Secret copy the redirect URI and paste it into the Authorized redirect URL in LinkedIn as given above in the image.
If you do not want to redirect to the Keycloak login-window instead of directly want to open the LinkedIn login page go to Authentication>>select FLows browser>> Identity Provider Redirector>> Action>>Config>>add linkedin in alias and default Identity provider.
š„³ and we are set now. Let us code the flask application.
4
