https://github.com/vengarioth/keycloak-sso-service
https://github.com/vengarioth/keycloak-sso-service
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vengarioth/keycloak-sso-service
- Owner: Vengarioth
- Created: 2018-09-07T07:05:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-07T07:26:34.000Z (almost 8 years ago)
- Last Synced: 2025-03-03T11:24:05.405Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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