Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFlick72 committed Feb 20, 2024
1 parent d0d1763 commit 2ff283b
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions docs/lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,27 @@ The expected event body scheme is like below:

```json
{
"general_context_claims" : {
"client_id": "your-client-app-id" ,
"grant_flow": "all supported grant flow for access_token and id_token"
"user": {
"sub": "",
"email": "",
"first_name": "",
"last_name": "",
"birth_date": "",
"phone": "",
"email_verified": "true|false",
"roles": []
},
"access_token_claims" : {
"general_context_claims": {
"client_id": "your-client-app-id",
"grant_flow": "all supported grant flow for access_token and id_token",
"authorized_scope": []
},
"access_token_claims": {
....
},
"id_token_claims" : {
"id_token_claims": {
....
}
}
}
```
The expected lambda result has to follow the same scheme, keep in mind that `access_token_claims` is where the lambda can put the claims to add to the `access_token`, while id_token_claims is intended to do the sam but for the `id_token`.

0 comments on commit 2ff283b

Please sign in to comment.