#1036 redux allow use of /login even when authN is delegated

This commit is contained in:
Oliver Gorwits
2023-06-22 13:55:00 +01:00
parent a7cd5603cb
commit 5515b93c88
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ hook 'before' => sub {
request->path_info('/');
}
# 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
my $provider = Dancer::Plugin::Auth::Extensible::auth_provider('users');