зеркало из https://github.com/mozilla/mig.git
Load an auth token into the API config before we work with it
This commit is contained in:
Родитель
0869eb7302
Коммит
89d41f5cb6
|
@ -87,7 +87,10 @@ func main() {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// instantiate the searchable map of assets early so we can use it throughout
|
// generate a realtime auth0 auth token
|
||||||
|
conf.api.Token = GetAuthToken(conf.api)
|
||||||
|
|
||||||
|
// load a searchable map of assets from ServiceAPI
|
||||||
var serviceApiAssets = make(map[string]ServiceApiAsset)
|
var serviceApiAssets = make(map[string]ServiceApiAsset)
|
||||||
err = GetAssets(serviceApiAssets, conf.api)
|
err = GetAssets(serviceApiAssets, conf.api)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче