Skip to content

Instantly share code, notes, and snippets.

@dcaponi
Created April 25, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcaponi/1e07e885e3bc3749f021850814b6f478 to your computer and use it in GitHub Desktop.
Save dcaponi/1e07e885e3bc3749f021850814b6f478 to your computer and use it in GitHub Desktop.
Set up OneLogin Client
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