Nils Thiele
Nils Thiele
hey, just stubmled upon this project. https://github.com/mbreese/subauth Maybe it could help with this?
Thanks for all the work you put into this. So if i understand you correctly authentication works, tho not with our native login form but the basic http auth dialog?...
sorry i edited my post a bunch of times so you probably missed my latest addition: > Shouldnt it be possible to redirect to the the native login form keeping...
@traverseda i just tried to run your fork but it wont work without `SERVER_NAME` being set: ``` class DomainSessionInterface(flask.sessions.SecureCookieSessionInterface): def get_cookie_domain(self, app): origin=request.headers.get('Origin',Config.SERVER_NAME).split("://")[-1] if origin=="localhost": origin="" return origin def get_cookie_httponly(self,...
thanks for the quick reply. Yes this would be great if you could do this as i probably mess something up while doing it on my own. All this advanced...
thanks for the cleanup... i will try this as soon as possible then merge it into the main branch.
just had some time to play around with this and after figuring out how to configure nginx i got it to work. Had some issues tho. 1. in models.py you...
Your current response message if the user is anonymous wont be displayed for me either (on firefox and chromium) only the basic realm is displayed (Login Required) in the login...
Got this fully working with nginx (yay :) ): ``` location / { proxy_pass http://192.168.1.41:5000/; include common_proxy_location.conf; } location /wiki/ { alias /etc/nginx/test/; autoindex on; auth_request /auth; set $auth_request_args "?group=wiki";...
Here is my code modification for allowing every authenticated user if no group(s) was supplied: ``` allowed_groups = request.args.getlist('group') if current_user.is_authenticated: if allowed_groups: if current_user.in_groups(*allowed_groups): return "", 201 else: return...