Skip to content

[FIX] auth_api_key: Read API key from headers#945

Open
SirPyTech wants to merge 1 commit into
OCA:18.0from
PyTech-SRL:18.0-fix-auth_api_key-headers
Open

[FIX] auth_api_key: Read API key from headers#945
SirPyTech wants to merge 1 commit into
OCA:18.0from
PyTech-SRL:18.0-fix-auth_api_key-headers

Conversation

@SirPyTech

@SirPyTech SirPyTech commented Jun 4, 2026

Copy link
Copy Markdown

Without this change, the API key is not being read from the headers.

It seems very strange to me that this is not working, but in my case it isn't, please let me know if I'm missing something.
In the end, the problem was elsewhere, but I'll leave this here because it smells to have headers = request.httprequest.environ: the request's headers should be assigned to the headers variable.

@SirPyTech SirPyTech marked this pull request as ready for review June 4, 2026 14:32
@SirPyTech SirPyTech force-pushed the 18.0-fix-auth_api_key-headers branch from d9516b0 to e035f31 Compare June 4, 2026 15:10
@francesco-ooops

Copy link
Copy Markdown
Contributor

@simahawk wdyt?

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants