mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-07 22:26:48 +00:00
docs: better distinct JWT Profile grant and assertion (#4201)
docs: update JWT Profile grant
This commit is contained in:
parent
44fc2efbb7
commit
9c37f39d43
@ -15,7 +15,7 @@ Given the client_id `78366401571920522@amce` and client_secret `veryweaksecret!`
|
|||||||
|
|
||||||
## JWT with Private Key
|
## JWT with Private Key
|
||||||
|
|
||||||
When using `private_key_jwt` for token or introspection endpoints, provide a JWT as assertion generated with the following structure and signed with a downloaded key:
|
When using `private_key_jwt` (`urn:ietf:params:oauth:client-assertion-type:jwt-bearer`) for token or introspection endpoints, provide a JWT as assertion generated with the following structure and signed with a downloaded key:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ Key JSON
|
|||||||
JWT
|
JWT
|
||||||
|
|
||||||
| Claim | Example | Description |
|
| Claim | Example | Description |
|
||||||
|:------|:------------------------------|:----------------------------------------------------------------------------------------------------------------|
|
|:------|:---------------------------|:----------------------------------------------------------------------------------------------------------------|
|
||||||
| aud | `"{your_domain}"` | String or Array of intended audiences MUST include ZITADEL's issuing domain |
|
| aud | `"{your_domain}"` | String or Array of intended audiences MUST include ZITADEL's issuing domain |
|
||||||
| exp | `1605183582` | Unix timestamp of the expiry |
|
| exp | `1605183582` | Unix timestamp of the expiry |
|
||||||
| iat | `1605179982` | Unix timestamp of the creation singing time of the JWT, MUST NOT be older than 1h |
|
| iat | `1605179982` | Unix timestamp of the creation singing time of the JWT, MUST NOT be older than 1h |
|
||||||
|
@ -201,7 +201,7 @@ Send your `code_verifier` for us to recompute the `code_challenge` of the author
|
|||||||
Send a client assertion as JWT for us to validate the signature against the registered public key.
|
Send a client assertion as JWT for us to validate the signature against the registered public key.
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| --------------------- | --------------------------------------------------------------------------------------------------------------- |
|
| --------------------- |--------------------------------------------------------------------------------------------------------------|
|
||||||
| client_assertion | JWT built and signed according to [Using JWTs for Client Authentication](authn-methods#jwt-with-private-key) |
|
| client_assertion | JWT built and signed according to [Using JWTs for Client Authentication](authn-methods#jwt-with-private-key) |
|
||||||
| client_assertion_type | Must be `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
|
| client_assertion_type | Must be `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
|
||||||
|
|
||||||
@ -224,7 +224,7 @@ Send a client assertion as JWT for us to validate the signature against the regi
|
|||||||
#### Required request Parameters
|
#### Required request Parameters
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| ---------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
| ---------- |-------------------------------------------------------------------------------------------------------------------------|
|
||||||
| grant_type | Must be `urn:ietf:params:oauth:grant-type:jwt-bearer` |
|
| grant_type | Must be `urn:ietf:params:oauth:grant-type:jwt-bearer` |
|
||||||
| assertion | JWT built and signed according to [Using JWTs for Authorization Grants](grant-types#using-jwts-as-authorization-grants) |
|
| assertion | JWT built and signed according to [Using JWTs for Authorization Grants](grant-types#using-jwts-as-authorization-grants) |
|
||||||
| scope | [Scopes](scopes) you would like to request from ZITADEL. Scopes are space delimited, e.g. `openid email profile` |
|
| scope | [Scopes](scopes) you would like to request from ZITADEL. Scopes are space delimited, e.g. `openid email profile` |
|
||||||
@ -297,7 +297,7 @@ Send your `client_id` as parameter in the body. No authentication is required.
|
|||||||
Send a `client_assertion` as JWT for us to validate the signature against the registered public key.
|
Send a `client_assertion` as JWT for us to validate the signature against the registered public key.
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| --------------------- | --------------------------------------------------------------------------------------------------------------- |
|
| --------------------- |--------------------------------------------------------------------------------------------------------------|
|
||||||
| client_assertion | JWT built and signed according to [Using JWTs for Client Authentication](authn-methods#jwt-with-private-key) |
|
| client_assertion | JWT built and signed according to [Using JWTs for Client Authentication](authn-methods#jwt-with-private-key) |
|
||||||
| client_assertion_type | Must be `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
|
| client_assertion_type | Must be `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ Send your `client_id` as parameters in the body:
|
|||||||
Send a `client_assertion` as JWT for ZITADEL to verify the signature against the registered public key.
|
Send a `client_assertion` as JWT for ZITADEL to verify the signature against the registered public key.
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| --------------------- | ----------------------------------------------------------------------------------------------------------- |
|
| --------------------- |---------------------------------------------------------------------------------------------------------------|
|
||||||
| client_assertion | JWT created and signed according to [Using JWTs for Client Authentication](authn-methods#client-secret-basic) |
|
| client_assertion | JWT created and signed according to [Using JWTs for Client Authentication](authn-methods#client-secret-basic) |
|
||||||
| client_assertion_type | must be `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
|
| client_assertion_type | must be `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` |
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ Make sure you have a Service User with a Key. (For more detailed informations ab
|
|||||||
|
|
||||||
## Authenticating a service user
|
## Authenticating a service user
|
||||||
|
|
||||||
In ZITADEL we use the `private_jwt` (**“JWT bearer token with private key”**, [RFC7523](https://tools.ietf.org/html/rfc7523)) authorization grant for this non-interactive authentication.
|
In ZITADEL we use the `urn:ietf:params:oauth:grant-type:jwt-bearer` (**“JWT bearer token with private key”**, [RFC7523](https://tools.ietf.org/html/rfc7523)) authorization grant for this non-interactive authentication.
|
||||||
This is already described in the [Service User](serviceusers.md), so make sure you follow this guide.
|
This is already described in the [Service User](serviceusers.md), so make sure you follow this guide.
|
||||||
|
|
||||||
### Request an OAuth token, with audience for ZITADEL
|
### Request an OAuth token, with audience for ZITADEL
|
||||||
|
@ -16,7 +16,7 @@ import UserDescription from '../../concepts/structure/_user_description.mdx';
|
|||||||
|
|
||||||
## Authenticating a service user
|
## Authenticating a service user
|
||||||
|
|
||||||
In ZITADEL we use the `private_jwt` (**“JWT bearer token with private key”**, [RFC7523](https://tools.ietf.org/html/rfc7523)) authorization grant for this non-interactive authentication.
|
In ZITADEL we use the `urn:ietf:params:oauth:grant-type:jwt-bearer` (**“JWT bearer token with private key”**, [RFC7523](https://tools.ietf.org/html/rfc7523)) authorization grant for this non-interactive authentication.
|
||||||
|
|
||||||
You need to follow these steps to authenticate a service user and receive a access token:
|
You need to follow these steps to authenticate a service user and receive a access token:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user