#1036 redux allow use of /login even when authN is delegated
This commit is contained in:
@@ -426,7 +426,7 @@ if (setting('trust_x_remote_user')) {
|
|||||||
name => 'X-REMOTE_USER',
|
name => 'X-REMOTE_USER',
|
||||||
description => 'API client user name',
|
description => 'API client user name',
|
||||||
in => 'header',
|
in => 'header',
|
||||||
required => true,
|
required => false,
|
||||||
type => 'string',
|
type => 'string',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ hook 'before' => sub {
|
|||||||
request->path_info('/');
|
request->path_info('/');
|
||||||
}
|
}
|
||||||
# API calls must conform strictly to path and header requirements
|
# API calls must conform strictly to path and header requirements
|
||||||
elsif (request_is_api) {
|
elsif (request_is_api and request->header('Authorization')) {
|
||||||
# from the internals of Dancer::Plugin::Auth::Extensible
|
# from the internals of Dancer::Plugin::Auth::Extensible
|
||||||
my $provider = Dancer::Plugin::Auth::Extensible::auth_provider('users');
|
my $provider = Dancer::Plugin::Auth::Extensible::auth_provider('users');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user