InvenTree/contrib/container
Matthias Mair 8bb03b7afd
feat(backend): add oauth2 (#9333)
* feat(backend): add oauth2

* fix import

* Add inventree roles

* refactor to make lookup more efficient

* fix single scope definitions

* cleanup

* fix schema

* reduce auth methods

* fix OAuth validator

* re-enable token and basic auth again

* Add models to role mapping

* change scope args

* add debug step for schema generation

* add oauth config for schema generation

* improve token -> permission mapping

* fix req

* extend checks to ensure normal auth also passes

* fix api version

* fix ignore

* fix rule name

* bump api version

* remove old modelref

* move scope definition

* make test results easier to work with

* add tests to ensure scopes are in sync with rulesets

* fix docstring

* fix various permissions and their mapping to oauth

* refactor

* simplify

* fix permission mapping

* ignore failure cases

* fix unauthenticated access

* flag oAuth2 till it is done

* Add OIDC support

* add RSA key generation and docs

* fix test

* move imports

* update ignore

* feat(backend): Add API Schema stats

* add scope stats

* fix name

* fix scope output

* feat(backend): test custom command

* add warning for unknown scopes

* reduce diff in launch.json

* cleanup  diff

* add error code for ruleset / scope issues

* update structure

* add oauth docs

* add experimetnal feature docs

* simplify metadata endpoint

* add importer model

* refactor(backend): simplify metadata endpoint

* fix imports

* simplify even more

* remove unneeded schema tooling

* fix permission mappings

* fix testing

* fix role calculations

* fix mapping

* remove importer change to unblock this

* remove importer scope everywhere

* fix merge conflict in test

* add missing models

* fix api version

* fix OASToken matcher

* revert permission class change

* reduce size of test log by writing schema

* fix permissions

* fix file path

* extend schema to remove need for TokenMatchesOASRequirements

* cleanup permissions file

* add base object permission
2025-04-18 19:27:32 +10:00
..
.env Docker updates (#9414) 2025-03-31 07:45:53 +11:00
Caddyfile Fix for buggy Caddyfile (#8830) 2025-01-05 22:18:24 +11:00
Dockerfile feat(backend): add oauth2 (#9333) 2025-04-18 19:27:32 +10:00
dev-docker-compose.yml Revert int.worker to worker (#8126) 2024-09-16 11:07:24 +10:00
docker-compose.yml Docker Compose Fix (#9311) 2025-03-16 10:43:40 +11:00
docker.dev.env [Docker] Alpine image fix (#9118) 2025-02-21 18:02:39 +11:00
gunicorn.conf.py chore: bump pre commit (#8904) 2025-01-18 09:38:00 +11:00
init.sh Docker fix (#8835) 2025-01-06 09:46:16 +11:00
install_build_packages.sh [Docker] Alpine image fix (#9118) 2025-02-21 18:02:39 +11:00
nginx.conf Nginx example (#7207) 2024-05-13 14:15:45 +10:00
requirements.in Chore: Bump python requirements (#7961) 2024-08-23 23:03:31 +00:00
requirements.txt chore: bump container deps (#9329) 2025-03-18 08:08:48 +11:00