Skip to content

Error when authorizing through configuration file config.yml #216

@DukeSoft55

Description

@DukeSoft55

There are problems when the Gohtttserver application is running through the configuration file: testdata/config.yml. When you launch the app
$ gohttpserver --conf=config.yml
using only the config.yml configuration file:

---
# Configuration Go HTTP Server
# [Link](https://github.com/codeskyblue/gohttpserver )
#
root: ./dir
port: 1234
auth-type: http
auth-http: username1:password1

Then the application is allowed on the site without any authorization.
When you specify the same parameters via the command line, the application requires authorization.
$ gohttpserver --conf=config.yml --auth-type http --auth-http username1:password1
This has been verified with basic authorization, OpenID, OAuth2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions