auth: pass namespace options in auth service requests (#1800)

* auth: pass namespace options in auth service requests

* auth/service/proto: update field index

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
ben-toogood
2020-07-07 08:30:25 +01:00
committed by GitHub
parent f5ed7e5833
commit 0a937745cd
5 changed files with 232 additions and 69 deletions

View File

@@ -10,7 +10,7 @@ import (
// Generate generates a service account for and continually
// refreshes the access token.
func Generate(id string, name string, a auth.Auth) error {
func Generate(id, name string, a auth.Auth) error {
// extract the account creds from options, these can be set by flags
accID := a.Options().ID
accSecret := a.Options().Secret