mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 09:41:37 +08:00
network and ACL initialization
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user