Skip to content

Implement proxy based auth - #2865

Merged
SchrodingersGat merged 2 commits into
inventree:masterfrom
matmair:matmair/issue1693
Apr 27, 2022
Merged

SchrodingersGat merged 2 commits into
inventree:masterfrom
matmair:matmair/issue1693

Conversation

@matmair

@matmair matmair commented Apr 24, 2022 •

Copy link
Copy Markdown
Member

This PR adds proxy-based auth by HTTP header via the Django-native AuthBackend / Middleware.

Note: This is an old but still often used (mostly in enterprise) option. Similar was possible with a few lines before - this PR adds specific settings for adaptations users could do with overriding the auth and middleware stack. By default, it is turned off so no changes to default behaviour should be noticed.
Fixes #1693

@matmair

matmair commented Apr 24, 2022

Copy link
Copy Markdown
Member Author

The original FR #1693 also called for some sort of onboarding page if the user is unknown. This would be a new concept so I did not implement it.

@matmair matmair added enhancement This is an suggested enhancement or new feature security Relates to a security issue setup Relates to the InvenTree setup / installation process labels Apr 24, 2022
@matmair matmair added this to the 0.7.0 milestone Apr 24, 2022
@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair ready for review?

@matmair

matmair commented Apr 27, 2022

Copy link
Copy Markdown
Member Author

@SchrodingersGat yes, ready for review!

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair brilliant, looks very clean and allows configurability without changing default user experience :)

@SchrodingersGat
SchrodingersGat merged commit d5f5032 into inventree:master Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an suggested enhancement or new feature security Relates to a security issue setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: reverse proxy login support

2 participants