Skip to content

Commit

Permalink
Remove invalid connection strategies (#694)
Browse files Browse the repository at this point in the history
* Revert "DXCDT-442: `auth0_connection_database` resource (#647)"

This reverts commit e600c0e.

* Removing invalid connection strategies

---------

Co-authored-by: Will Vedder <[email protected]>
  • Loading branch information
willvedd and willvedd authored Jul 7, 2023
1 parent f118f22 commit 78752c7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ resource "auth0_connection" "salesforce" {

### OAuth2 Connection

Also applies to following connection strategies: `dropbox`, `bitbucket`, `paypal`, `twitter`, `amazon`, `yahoo`, `box`, `wordpress`, `discord`, `imgur`, `spotify`, `shopify`, `figma`, `slack-oauth-2`, `digitalocean`, `twitch`, `vimeo`, `custom`
Also applies to following connection strategies: `dropbox`, `bitbucket`, `paypal`, `twitter`, `amazon`, `yahoo`, `box`, `wordpress`, `shopify`, `custom`

```terraform
# This is an example of an OAuth2 connection.
Expand Down
8 changes: 0 additions & 8 deletions internal/auth0/connection/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,7 @@ func expandConnection(d *schema.ResourceData, api *management.Management) (*mana
management.ConnectionStrategyYahoo,
management.ConnectionStrategyBox,
management.ConnectionStrategyWordpress,
management.ConnectionStrategyDiscord,
management.ConnectionStrategyImgur,
management.ConnectionStrategySpotify,
management.ConnectionStrategyShopify,
management.ConnectionStrategyFigma,
management.ConnectionStrategySlack,
management.ConnectionStrategyDigitalOcean,
management.ConnectionStrategyTwitch,
management.ConnectionStrategyVimeo,
management.ConnectionStrategyCustom:
connection.Options, diagnostics = expandConnectionOptionsOAuth2(d, options)
case management.ConnectionStrategyFacebook:
Expand Down
2 changes: 1 addition & 1 deletion templates/resources/connection.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ creation of multiple connections per strategy, the additional connections may no

### OAuth2 Connection

Also applies to following connection strategies: `dropbox`, `bitbucket`, `paypal`, `twitter`, `amazon`, `yahoo`, `box`, `wordpress`, `discord`, `imgur`, `spotify`, `shopify`, `figma`, `slack-oauth-2`, `digitalocean`, `twitch`, `vimeo`, `custom`
Also applies to following connection strategies: `dropbox`, `bitbucket`, `paypal`, `twitter`, `amazon`, `yahoo`, `box`, `wordpress`, `shopify`, `custom`

{{ tffile "examples/resources/auth0_connection/resource_with_oauth2.tf" }}

Expand Down

0 comments on commit 78752c7

Please sign in to comment.