[12.0][ADD] db_from_header
This addon lets you pre-select a session database with an HTTP header: X_ODOO_DB by extending (monkey patching) the builtin « magic » function. It is needed when you have more than one database but you need to make some API calls using the auth_api_key module for example.
I know that it seems to mimic the dbfilter_from_header functionality but that's not the case.
The X_ODOO_DBFILTER header should be cleaned-up by your reverse proxy for security reasons, not the X_ODOO_DB that comes after the database filtering.
That means the you can only pre-select a database coming from the filtered database list (conf file or from header).
Also that's why this module does not require the proxy_mode.
/ocabot rebase
@thomaspaulb The rebase process failed, because command git push --force decgroupe tmp-pr-2276:12.0-add-db_from_header failed with output:
remote: Permission to decgroupe/server-tools.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/decgroupe/server-tools/': The requested URL returned error: 403
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.