An open API service indexing awesome lists of open source software.

https://github.com/vengarioth/keycloak-sso-service


https://github.com/vengarioth/keycloak-sso-service

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Keycloak SSO Service

Minimal stateless OpenID Connect SSO REST API Service to be used in front of Keycloak.

## environment variables

| key | description | example |
|---------------------------|-------------------------------------------------------------|----------------------------------------|
| PORT | the port the server will listen on | `3000` |
| AUTH_SERVER_URL | the url the auth server is found at | `http://localhost:8080/auth` |
| AUTH_SERVER_CLIENT_ID | the client_id used to authenticate with the auth server | `test-client` |
| AUTH_SERVER_CLIENT_SECRET | the client_secret used to authenticate with the auth server | `00000000-0000-0000-0000-000000000000` |
| AUTH_SERVER_REALM | the realm on the auth server to connect to | `users` |

## endpoints

| address | body | response |
|-----------------|--------------------------------------------------|------------------------------------------------------------------------|
| `/authenticate` | `{ "username": , "password": }` | `{ "id_token": , "access_token": , "refresh_token": }` |
| `/refresh` | `{ "refresh_token": }` | `{ "id_token": , "access_token": , "refresh_token": }` |

## licence

MIT