Re: External Authentication with username in header

2022-07-19 Thread Hella thor
你可以尝试下JWT,在django中使用的话是pyjwt Anh Nguyen 于2022年7月19日周二 23:56写道: > > https://docs.djangoproject.com/en/4.1/ref/contrib/auth/#django.contrib.auth.backends.RemoteUserBackend.configure_user > Django 4.1 now supports ext auth. Never try but hope this helps > > On Tue, 19 Jul 2022 at 22:32 tcouch

Re: External Authentication with username in header

2022-07-19 Thread Anh Nguyen
https://docs.djangoproject.com/en/4.1/ref/contrib/auth/#django.contrib.auth.backends.RemoteUserBackend.configure_user Django 4.1 now supports ext auth. Never try but hope this helps On Tue, 19 Jul 2022 at 22:32 tcouch wrote: > I did something like this recently when I was trying to get a django

Re: External Authentication with username in header

2022-07-19 Thread tcouch
I did something like this recently when I was trying to get a django app to work with Authelia . I found this example using the RemoteUserMiddleware useful: https://github.com/authelia/authelia/commit/8c9ba407f698eacc145e5fbe4e57fc27e7411261 On Monday, July 18, 2022

Re: External Authentication with username in header

2022-07-18 Thread Ryan Nowakowski
Middleware is how Django does it. https://docs.djangoproject.com/en/4.0/ref/middleware/#module-django.contrib.auth.middleware On July 15, 2022 4:19:10 PM CDT, Mark Glass wrote: >I would like to change the link that opens a Django app. Currently the app >is launched with GET

Re: External Authentication with username in header

2022-07-17 Thread Abdul Qoyyuum
That sounds like a Single Sign On or a Central Authentication Service. This stackoverflow shows some suggestions https://stackoverflow.com/q/4662348/1431104 Or if your "External Authentication" is a known provider service, you could take a look at django-allauth. On Sat, Jul 16, 2022 at 5:30 AM

External Authentication with username in header

2022-07-15 Thread Mark Glass
I would like to change the link that opens a Django app. Currently the app is launched with GET http://localhost:8000. I would like to include a username and password in the header. The header would be intercepted somehow (Middleware?) and the user marked as authenticated. The app will then