canonical / oathkeeper-operator

Charmed Ory Oathkeeper
https://charmhub.io/oathkeeper
Apache License 2.0
1 stars 4 forks source link

feat: support user email and name custom headers #58

Closed natalian98 closed 6 months ago

natalian98 commented 6 months ago

This PR adds support for new custom headers: X-Name and X-Email. They are mapped with kratos identity.traits claims.

natalian98 commented 6 months ago

why are we not allowing completely custom headers via a config parameter in the charm?

this works, but the headers are vetted by us instead of being fully custom

If this was a config option, the end user wouldn't necessarily know how to map the the headers with kratos claims.

You can specify which ones should be returned with the headers parameter (see here)