Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into e2e-tests
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	src/app.module.ts
  • Loading branch information
sleidig committed Feb 29, 2024
2 parents 9e18a1d + f742836 commit cb83841
Show file tree
Hide file tree
Showing 54 changed files with 1,810 additions and 666 deletions.
10 changes: 6 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
; CouchDb Basic Auth credentials for different clients
COUCH_DB_CLIENT_NOTIFICATION_BASIC_AUTH_USER=admin
COUCH_DB_CLIENT_NOTIFICATION_BASIC_AUTH_PASSWORD=docker
COUCH_DB_CLIENT_REPORT_BASIC_AUTH_USER=admin
COUCH_DB_CLIENT_REPORT_BASIC_AUTH_PASSWORD=docker

COUCH_DB_CLIENT_APP_BASIC_AUTH_USER=admin
COUCH_DB_CLIENT_APP_BASIC_AUTH_PASSWORD=docker

COUCH_DB_CLIENT_REPORT_CALCULATION_BASIC_AUTH_USER=admin
COUCH_DB_CLIENT_REPORT_CALCULATION_BASIC_AUTH_PASSWORD=docker

; SQS Basic Auth credentials
SQS_CLIENT_BASIC_AUTH_USER=admin
SQS_CLIENT_BASIC_AUTH_PASSWORD=docker
QUERY_SQS_CLIENT_BASIC_AUTH_USER=admin
QUERY_SQS_CLIENT_BASIC_AUTH_PASSWORD=docker

; Encryption Key for server side secret encryption
; e.g. webhook credentials stored encrypted in database
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ curl -X "POST" "https://keycloak.aam-digital.net/realms/<your_realm>/protocol/op
--data-urlencode "client_id=<your_client_id>" \
--data-urlencode "client_secret=<your_client_secret>" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "scopes=openid reports_read reports_write"
--data-urlencode "scopes=openid reporting_read reporting_write"
```
Check API docs for the required "scopes".
This returns a JWT access token required to provided as Bearer Token for any request to the API endpoints. Sample token:
Expand All @@ -45,7 +45,7 @@ This returns a JWT access token required to provided as Bearer Token for any req
"refresh_expires_in": 0,
"token_type": "Bearer",
"not-before-policy": 0,
"scope": "openid reports_read reports_write"
"scope": "openid reporting_read reporting_write"
}
```

Expand Down
Loading

0 comments on commit cb83841

Please sign in to comment.