re-fixed basic auth
This commit is contained in:
parent
bb31750e7c
commit
0cb3623d6f
2 changed files with 8 additions and 9 deletions
|
|
@ -17,6 +17,8 @@
|
|||
- fixed #10365: Head tags do not work "Use Packed Head Tags".
|
||||
- fixed #9927: Survey - verbatim
|
||||
- fixed #10352: Deleting a user does not clean up any address books
|
||||
- Fixed the problem with Basic Auth that UK fixed, but in a different way
|
||||
that still allows non-realm based Basic authentication.
|
||||
- fixed #10228: Calendar: Weekly re-occurence function not working properly
|
||||
( Martin Kamerbeek / Oqapi )
|
||||
|
||||
|
|
|
|||
|
|
@ -168,18 +168,15 @@ sub handler {
|
|||
my $gotMatch = 0;
|
||||
|
||||
# handle basic auth
|
||||
# Get the type of authorization required for this request (the per
|
||||
# directory configuration directive AuthType):
|
||||
my $auth = $request->auth_type;
|
||||
|
||||
my $auth = $request->headers_in->{'Authorization'};
|
||||
warn "auth: ".$auth;
|
||||
if ($auth =~ m/^Basic/) { # machine oriented
|
||||
# Get username and password from Apache and hand over to authen
|
||||
my $basicAuthUser = $request->get_remote_logname;
|
||||
my $basicAuthPass = $request->get_basic_auth_pw;
|
||||
authen($request, $basicAuthUser, $basicAuthPass, $config);
|
||||
# Get username and password from Apache and hand over to authen
|
||||
$auth =~ s/Basic //;
|
||||
authen($request, split(":", MIME::Base64::decode_base64($auth), 2), $config);
|
||||
}
|
||||
else { # realm oriented
|
||||
$request->push_handlers(PerlAuthenHandler => sub { return WebGUI::authen($request, undef, undef, $config)});
|
||||
$request->push_handlers(PerlAuthenHandler => sub { return WebGUI::authen($request, undef, undef, $config)});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue