IdentityPython / SATOSA

Proxy translating between different authentication protocols (SAML2, OpenID Connect and OAuth2)
https://idpy.org
Apache License 2.0
200 stars 123 forks source link

feat: added some useful http headers to context #365

Closed peppelinux closed 3 years ago

peppelinux commented 3 years ago

This PR adds in satosa context object some useful HTTP request headers in a private attribute called _http_headers. these are the following

With these additional values we would allow some highly specialized feature in the future Microservices. Some example:

All Submissions:

c00kiemon5ter commented 3 years ago

@peppelinux we will be merging this PR.

I think the extracted headers could also be configurable. We will re-iterate to do this and probably handle it outside of the proxy-application but as its own middleware.

peppelinux commented 3 years ago

@peppelinux we will be merging this PR.

I think the extracted headers could also be configurable. We will re-iterate to do this and probably handle it outside of the proxy-application but as its own middleware.

seems quite resonable to me, thank you