From 961cd4bff689e8edb1cb2c803528366f98e9f4f5 Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Thu, 19 Aug 2021 16:22:56 +0200 Subject: [PATCH] docs: fix jwt profile requests (#2227) --- docs/docs/apis/openidoauth/endpoints.md | 6 ++---- docs/docs/guides/usage/access-zitadel-apis.md | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/docs/apis/openidoauth/endpoints.md b/docs/docs/apis/openidoauth/endpoints.md index fef1027ab3..6475ab0245 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 88874ec235..4e30fa3ad8 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