ory / hydra

The most scalable and customizable OpenID Certified™ OpenID Connect and OAuth Provider on the market. Become an OpenID Connect and OAuth2 Provider over night. Broad support for related RFCs. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=hydra
Apache License 2.0
15.64k stars 1.5k forks source link

Update claims instead of overwrite from webhook response #3889

Open 3schwartz opened 1 week ago

3schwartz commented 1 week ago

According to the webhook documentation:

To accept the token exchange without modification, return a 204 or 200 HTTP status code without a response body.

However, this behavior is currently not functioning as expected. When an empty response is returned, it overwrites the additional claims sent to the webhook, effectively erasing them.

Related issue(s)

https://github.com/ory/hydra/issues/3879

Checklist

Further Comments

CLAassistant commented 1 week ago

CLA assistant check
All committers have signed the CLA.