diff --git a/docs/docs/apis/openidoauth/endpoints.md b/docs/docs/apis/openidoauth/endpoints.md index fef1027ab..6475ab024 100644 --- a/docs/docs/apis/openidoauth/endpoints.md +++ b/docs/docs/apis/openidoauth/endpoints.md @@ -133,10 +133,8 @@ Required request Parameters curl --request POST \ --url https://api.zitadel.ch/oauth/v2/token \ --header 'Content-Type: application/x-www-form-urlencoded' \ - --data grant_type=authorization_code \ - --data code=DKLvnksjndjsflkdjlkfgjslow... \ - --data client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer \ - --data client_assertion=eyJhbGciOiJSUzI1Ni... + --data grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer \ + --data assertion=eyJhbGciOiJSUzI1Ni... ``` ### Refresh Token Grant diff --git a/docs/docs/guides/usage/access-zitadel-apis.md b/docs/docs/guides/usage/access-zitadel-apis.md index 88874ec23..4e30fa3ad 100644 --- a/docs/docs/guides/usage/access-zitadel-apis.md +++ b/docs/docs/guides/usage/access-zitadel-apis.md @@ -71,12 +71,12 @@ Use the scope `urn:zitadel:iam:org:project:id:{projectid}:aud` to include the pr curl --request POST \ --url https://api.zitadel.ch/oauth/v2/token \ --header 'Content-Type: application/x-www-form-urlencoded' \ - --data grant_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer \ + --data grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer \ --data scope='openid profile email urn:zitadel:iam:org:project:id:69234237810729019:aud' \ --data assertion=eyJ0eXAiOiJKV1QiL... ``` -* `grant_type` must be set to `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` +* `grant_type` must be set to `urn:ietf:params:oauth:grant-type:jwt-bearer` * `scope` should contain any [Scopes](../../apis/openidoauth/scopes) you want to include, but must include `openid`. For this example, please include `profile` and `email` * `assertion` is the encoded value of the JWT that was signed with your private key from the prior step