network and ACL initialization

This commit is contained in:
afeiszli
2022-09-13 15:41:23 -04:00
parent 88cd0a6497
commit 96772bb4bd
5 changed files with 41 additions and 6 deletions

View File

@@ -24,6 +24,9 @@ func Join(cfg *config.ClientConfig, privateKey string) error {
// Do that before the Joining Network flow by performing the end point auth flow
// if performed successfully an access key is obtained from the server and then we
// proceed with the usual flow 'pretending' that user is feeded us with an access token
if len(cfg.Network) == 0 || cfg.Network == "all" {
return fmt.Errorf("no network provided. Specify network with \"-n <net name>\"")
}
logger.Log(1, "Logging into %s via:", cfg.Network, cfg.SsoServer)
err = functions.JoinViaSSo(cfg, privateKey)
if err != nil {