Over at the day job I recently had the need to write a quick keycloak login integration for my team.
I needed this to interface with our central login server, and extract a token in order to be able to interface with our GraphQL data management APIs, so that our new research project output pages could be built out by the rest of my team.
Thought this might be of use to folks, if you need it! Supports login/logout using OAuth2 and OIDC, as well as token refresh to extract a token compatible with our GraphQL library.
Have fun!