Merge pull request #2362 from twistlock/populate_htpasswd

Create and populate htpasswd file if missing
This commit is contained in:
Olivier Gambier
2018-08-31 00:25:37 -07:00
committed by GitHub
5 changed files with 96 additions and 5 deletions

View File

@@ -307,7 +307,7 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App {
authType := config.Auth.Type()
if authType != "" {
if authType != "" && !strings.EqualFold(authType, "none") {
accessController, err := auth.GetAccessController(config.Auth.Type(), config.Auth.Parameters())
if err != nil {
panic(fmt.Sprintf("unable to configure authorization (%s): %v", authType, err))