Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
finally fix auth struggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Jul 31, 2020
1 parent d6654af commit 0334fac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ func (a *RestAuthDecorator) DecorateHandler(orig httprouter.Handle, appName stri
return
}

if cfg.Authentication.ProviderConfig.Service == appName {
if cfg.Authentication.ProviderConfig.Service == appName ||
(cfg.Applications[appName].Backend.Url != "" && cfg.Authentication.ProviderConfig.Url != "" &&
cfg.Applications[appName].Backend.Url == cfg.Authentication.ProviderConfig.Url) {
goto valid
}

Expand Down

0 comments on commit 0334fac

Please sign in to comment.