Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkappa committed Sep 17, 2018
1 parent 11ec46a commit a3fe2dd
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 102 deletions.
7 changes: 4 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[constraint]]
name = "github.com/yieldr/go-auth0"
version = "v1.0.0-beta.3"
version = "v1.0.0-beta.5"

[prune]
go-tests = true
Expand Down
2 changes: 1 addition & 1 deletion auth0/resource_auth0_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func readClient(d *schema.ResourceData, m interface{}) error {
d.Set("app_type", c.AppType)
d.Set("logo_uri", c.LogoURI)
d.Set("is_first_party", c.IsFirstParty)
d.Set("oidc_compliant", c.OIDCConformant)
d.Set("oidc_conformant", c.OIDCConformant)
d.Set("callbacks", c.Callbacks)
d.Set("allowed_logout_urls", c.AllowedLogoutURLs)
d.Set("allowed_origins", c.AllowedOrigins)
Expand Down
6 changes: 6 additions & 0 deletions auth0/resource_auth0_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ func newConnection() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
},
"requires_username": {
Type: schema.TypeBool,
Optional: true,
},
},
},
},
Expand Down Expand Up @@ -184,6 +188,7 @@ func readConnection(d *schema.ResourceData, m interface{}) error {
"brute_force_protection": c.Options.BruteForceProtection,
"import_mode": c.Options.ImportMode,
"disable_signup": c.Options.DisableSignup,
"requires_username": c.Options.RequiresUsername,
},
})

Expand Down Expand Up @@ -246,6 +251,7 @@ func buildConnection(d *schema.ResourceData) *management.Connection {
BruteForceProtection: auth0.Bool(options["brute_force_protection"].(bool)),
ImportMode: auth0.Bool(options["import_mode"].(bool)),
DisableSignup: auth0.Bool(options["disable_signup"].(bool)),
RequiresUsername: auth0.Bool(options["requires_username"].(bool)),
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions auth0/resource_auth0_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ func TestAccConnection(t *testing.T) {
resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.enabled_database_customization", "false"),
resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.brute_force_protection", "true"),
resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.import_mode", "true"),
resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.disable_signup", "true"),
resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.disable_signup", "false"),
resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.requires_username", "true"),
),
},
},
Expand All @@ -41,7 +42,8 @@ resource "auth0_connection" "my_connection" {
enabled_database_customization = false
brute_force_protection = true
import_mode = true
disable_signup = true
disable_signup = false
requires_username = true
}
}
`
1 change: 1 addition & 0 deletions vendor/github.com/yieldr/go-auth0/management/connection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 1 addition & 82 deletions vendor/github.com/yieldr/go-auth0/management/management.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 45 additions & 13 deletions vendor/github.com/yieldr/go-auth0/management/utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a3fe2dd

Please sign in to comment.