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
request := &models.SessionLoginTokenRequest{ | |
UsernameOrEmail: oltypes.String(username), | |
Password: oltypes.String(password), | |
Subdomain: oltypes.String(subdomain), | |
} | |
resp, _, err := oneloginClient.Services.SessionLoginTokensV1.CreateSessionLoginToken(request) | |
if err != nil { | |
log.Println(err) | |
} |
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) | |
} |
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
package main | |
import ( | |
"log" | |
"os" | |
"github.com/onelogin/onelogin-go-sdk/pkg/client" | |
"github.com/onelogin/onelogin-go-sdk/pkg/models" | |
"github.com/onelogin/onelogin-go-sdk/pkg/oltypes" | |
"layeh.com/radius" |
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
terraform init | |
2020/04/17 12:02:07 [INFO] Terraform version: 0.12.24 | |
2020/04/17 12:02:07 [INFO] Go runtime version: go1.13.8 | |
2020/04/17 12:02:07 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init"} | |
2020/04/17 12:02:07 [DEBUG] Attempting to open CLI config file: /Users/dominickcaponi/.terraformrc | |
2020/04/17 12:02:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/04/17 12:02:07 [DEBUG] checking for credentials in "/Users/dominickcaponi/.terraform.d/plugins" | |
2020/04/17 12:02:07 [DEBUG] checking for credentials in "/Users/dominickcaponi/.terraform.d/plugins/darwin_amd64" | |
2020/04/17 12:02:07 [INFO] CLI command args: []string{"init"} |
NewerOlder