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"} |
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
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
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
# onelogin_apps.basic will be created | |
+ resource "onelogin_apps" "basic" { | |
+ allow_assumed_signin = false | |
2020/04/28 12:16:47 [DEBUG] command: asking for input: "Do you want to perform these actions?" | |
+ auth_method = (known after apply) | |
+ connector_id = 20938 | |
+ created_at = (known after apply) | |
+ icon_url = (known after apply) | |
+ id = (known after apply) | |
+ name = "Form-Based fff" |
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
TF OUTPUT FROM APPLY | |
2020/04/28 12:17:13 [INFO] backend/local: apply calling Apply | |
2020/04/28 12:17:13 [INFO] terraform: building graph: GraphTypeApply | |
2020/04/28 12:17:13 [TRACE] Executing graph transform *terraform.ConfigTransformer | |
2020/04/28 12:17:13 [TRACE] ConfigTransformer: Starting for path: | |
2020/04/28 12:17:13 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph: | |
onelogin_apps.basic (prepare state) - *terraform.NodeApplyableResource | |
------ | |
2020/04/28 12:17:13 [TRACE] Executing graph transform *terraform.DiffTransformer |
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
OUTPUT FROM TERRAFORM REFRESH | |
2020/04/28 12:19:00 [INFO] Terraform version: 0.12.24 | |
2020/04/28 12:19:00 [INFO] Go runtime version: go1.13.8 | |
2020/04/28 12:19:00 [INFO] CLI args: []string{"/usr/local/bin/terraform", "refresh"} | |
2020/04/28 12:19:00 [DEBUG] Attempting to open CLI config file: /Users/dominickcaponi/.terraformrc | |
2020/04/28 12:19:00 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/04/28 12:19:00 [DEBUG] checking for credentials in "/Users/dominickcaponi/.terraform.d/plugins" | |
2020/04/28 12:19:00 [DEBUG] checking for credentials in "/Users/dominickcaponi/.terraform.d/plugins/darwin_amd64" | |
2020/04/28 12:19:00 [INFO] CLI command args: []string{"refresh"} |
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
provider "onelogin" { | |
client_id = "xxxxxxxxxxxxxxxxxxxx" | |
client_secret = "xxxxxxxxxxxxxxxxxxxx" | |
url = "https://api.us.onelogin.com" | |
} | |
resource "onelogin_saml_apps" "aws-console"{ | |
connector_id = 50534 | |
name = "AWS Multi Role App" | |
description = "AWS Multi Role app created via Terraform" |
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 ( | |
"github.com/hashicorp/terraform-plugin-sdk/plugin" | |
"github.com/onelogin/onelogin-terraform-provider/onelogin" | |
) | |
func main() { | |
plugin.Serve(&plugin.ServeOpts{ | |
ProviderFunc: onelogin.Provider, |
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
{ | |
"updated_at": "2020-05-02T16:17:18Z", | |
"auth_method": 0, | |
"icon_url": "https://cdn.something.net/images/icons/square/5558229540474713/my_icon.png?1427294311", | |
"connector_id": 20938, | |
"role_ids": [], | |
"id": 1023060, | |
"name": "fit bit company portal", | |
"created_at": "2020-05-02T16:17:18Z", | |
"notes": "", |
OlderNewer