Hi,
I connected my frontend application with keycloak server. After I log in, I get redirected back to my frontend application and everything is great. Keycloak sets a few cookies to maintain SSO like:
KEYCLOAK_IDENTITY and KEYCLOAK_SESSION
I noticed that KEYCLOAK_IDENTITY has a JWT for a value. Can we use this JWT or the info it contains to get keycloak access/refresh token we would otherwise get from:
https://www.keycloak.org/docs/latest/securing_apps/#token-endpoint
e.g.
curl --request POST \
--url https://.../auth/realms/test-realm/protocol/openid-connect/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data client_id=test_client \
--data grant_type=password \
--data username=test_user \
--data password=test_password
Any advice / guidance is appreciated.