Skip to content

Commit

Permalink
ui: regen + use public as default audience
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Mercadal committed Jan 19, 2022
1 parent cff7fae commit 6a2b8c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/a3sctl/internal/help/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/ui/bindata.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions internal/ui/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ func GetLogin(api string, redirect string, audience string) ([]byte, error) {
return nil, err
}

if audience == "" {
audience = "public"
}

doc = bytes.Replace(doc, apiURLPlaceholder, []byte(api), 1)
doc = bytes.Replace(doc, redirectAPIPlaceholder, []byte(redirect), 1)
doc = bytes.Replace(doc, audiencePlaceholder, []byte(audience), 1)
Expand Down

0 comments on commit 6a2b8c2

Please sign in to comment.