Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove invalid connection strategies #694

Merged
merged 4 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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