From 00d3bb475504fedfaf2f9234604e0dfa4a73e120 Mon Sep 17 00:00:00 2001 From: sgal Date: Thu, 23 Mar 2023 21:40:02 +0100 Subject: [PATCH] fix:update docs according to the latest changes in hydra --- .../guides/updating-claims-at-refresh.mdx | 31 +++---------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/docs/hydra/guides/updating-claims-at-refresh.mdx b/docs/hydra/guides/updating-claims-at-refresh.mdx index e62cf11a30..e41befee8f 100644 --- a/docs/hydra/guides/updating-claims-at-refresh.mdx +++ b/docs/hydra/guides/updating-claims-at-refresh.mdx @@ -103,9 +103,6 @@ The token hook endpoint must accept the following payload format: "kid": "key-id" }, "requester": { - "client_id": "bar", - "granted_scopes": ["openid", "offline"], - "granted_audience": [], "grant_types": ["refresh_token"], "payload": {} }, @@ -124,36 +121,16 @@ The token hook endpoint must accept the following payload format: ### Requester payload -For `client_credentials` and `jwt-bearer` grant types, the entire payload that you send to the `/token` endpoint will also be sent -to the configured webhook URL. +For `jwt-bearer` grant type, the payload that you send to the `/token` endpoint will also be sent to the configured webhook URL. -Here's the format of the `requester.payload` field for each grant type: +Here's the format of the `requester.payload: -```mdx-code-block - - - {` -{ - "grant_type": [ - "client_credentials" - ], - "audience": ["my-api"], - "scope": ["user:profile:read"] -} - `} - - - {` +```json { - "grant_type": [ - "urn:ietf:params:oauth:client-assertion-type:jwt-bearer" - ], + "grant_type": ["urn:ietf:params:oauth:client-assertion-type:jwt-bearer"], "assertion": ["eyJhbGciOiJIUzI..."], "scope": ["user:profile:read"] } - `} - - ``` :::note