Skip to content

Commit

Permalink
fixup! auth: add ability to authenticate downloads with JWT tokens
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Feb 29, 2024
1 parent 44d82bb commit ae1b553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ var bindAddr = flag.String("listen", ":9110", "The port to listen on.")

type config struct {
// Username and password required to access the bug report listings
BugsUser string `yaml:"listings_auth_user"`
BugsPass string `yaml:"listings_auth_pass"`

BugsUser string `yaml:"listings_auth_user"`
BugsPass string `yaml:"listings_auth_pass"`
BugsJWTSecret string `yaml:"listings_jwt_secret"`

// External URI to /api
Expand Down
1 change: 1 addition & 0 deletions rageshake.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# *no* authentication on this access!
listings_auth_user: alice
listings_auth_pass: secret
listings_jwt_secret: secret

# the external URL at which /api is accessible; it is used to add a link to the
# report to the GitHub issue. If unspecified, based on the listen address.
Expand Down

0 comments on commit ae1b553

Please sign in to comment.