Created
April 25, 2020 16:44
-
-
Save dcaponi/1e07e885e3bc3749f021850814b6f478 to your computer and use it in GitHub Desktop.
Set up OneLogin Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oneloginClient, err := client.NewClient(&client.APIClientConfig{ | |
Timeout: 5, | |
ClientID: os.Getenv("OL_CLIENT_ID"), | |
ClientSecret: os.Getenv("OL_CLIENT_SECRET"), | |
Url: os.Getenv("OL_ENDPOINT"), | |
}) | |
if err != nil { | |
log.Fatal(err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment