REST API for creating access tokens in Keycloak from user and client credentials.
- Install Serverless Framework
- Install plugins:
sls plugin install -n serverless-python-requirements
sls plugin install -n serverless-aws-documentation
Tests are run using tox.
$ tox
Or
$ make test
Deploy to both dev and prod is automatic via GitHub Actions on push to
main
. You can alternatively deploy from local machine with: make deploy
or
make deploy-prod
.
Input event is a lambda http proxy request event with body:
{
"username": "user1",
"password": "password123"
}
Output is a lambda http proxy response event with body:
{
"access_token": "some-access-token",
"expires_in": 300,
"refresh_expires_in": 1800,
"refresh_token": "some-refresh-token",
"token_type": "bearer",
"not-before-policy": 1563194597,
"session_state": "some-uuid",
"scope": "profile email"
}