impl oauth

This commit is contained in:
Bel LaPointe
2021-04-20 07:04:05 -05:00
parent 0e22586e12
commit de5f17e2c9
2 changed files with 25 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ var (
StoreUser string
StorePass string
Root string
OAuth string
)
func init() {
@@ -31,6 +32,7 @@ func Refresh() {
as.Append(args.STRING, "storeaddr", "addr of store", "")
as.Append(args.STRING, "storeuser", "user of store", "")
as.Append(args.STRING, "storepass", "pass of store", "")
as.Append(args.STRING, "oauth", "url for boauthz", "")
as.Append(args.STRING, "root", "root of static files", "./public")
if err := as.Parse(); err != nil {
panic(err)
@@ -42,4 +44,5 @@ func Refresh() {
StoreUser = as.Get("storeuser").GetString()
StorePass = as.Get("storepass").GetString()
Root = as.Get("root").GetString()
OAuth = as.Get("oauth").GetString()
}