We are trying to connect keycloak with an internal application that currently authenticates with a proprietary token. This token is used to search a database for user information. I want to have the flow look like:
- User enters login info into login form
- Keycloak custom spi calls our internal service and gets this proprietary token
- spi uses that token to search the database and get user id
- user id is added to keycloak access token and returned as part of the login
Is this possible? How would I go about doing this?