docs(actions): correct tokens in post authentication (#5600)

* docs(actions): correct tokens in post authentication

* docs(actions): correct context fields in complement token
This commit is contained in:
Silvan 2023-04-03 17:32:40 +02:00 committed by GitHub
parent 4f5b195420
commit d515e1a004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ This trigger is called before userinfo are set in the token or response.
- `getUser()` [*User*](./objects#user)
- `user`
- `getMetadata()` [*metadataResult*](./objects#metadata-result)
- `grants` [*UserGrantList*](./objects#user-grant-list)
- `grants` [*UserGrantList*](./objects#user-grant-list)
- `api`
The second parameter contains the following fields:
- `v1`
@ -45,7 +45,7 @@ This trigger is called before the claims are set in the access token and the tok
- `getUser()` [*User*](./objects#user)
- `user`
- `getMetadata()` [*metadataResult*](./objects#metadata-result)
- `grants` [*UserGrantList*](./objects#user-grant-list)
- `grants` [*UserGrantList*](./objects#user-grant-list)
- `api`
The second parameter contains the following fields:
- `v1`

View File

@ -13,13 +13,13 @@ A user has authenticated externally. ZITADEL retrieved and mapped the external i
- `ctx`
The first parameter contains the following fields
- `accessToken` *string*
The access token which will be returned to the user. This can be an opaque token or a JWT
The access token returned by the identity provider. This can be an opaque token or a JWT
- `claimsJSON()` [*idTokenClaims*](../openidoauth/claims)
Returns all claims of the id token
- `getClaim(key)` *Any*
Returns the requested [id token claim](../openidoauth/claims)
- `idToken` *string*
The id token which will be returned to the user
The id token provided by the identity provider.
- `v1`
- `externalUser()` [*externalUser*](./objects#external-user)
- `authError` *string*