Skip to content

Conversation

@siddiqui-io
Copy link
Contributor

🔧 Changes

Updated expand logic for the multiple scopes

📚 References

Github Issue #1244

🔬 Testing

This is tested manually by using multiple scopes in the terraform and confirming the request is using single string instead of a string slice

Example tf snippet used for testing (strictly following the doc recommendation):

resource "auth0_connection" "oauth2" {
  name     = "my-oauth2-connection-test-2"
  strategy = "oauth2"

  options {
    scopes = ["email", "profile"]

    scripts = {
      fetchUserProfile = <<EOF
function(accessToken, ctx, cb) {
  return cb(null, {
    user_id: "oauth2|example",
    email: "[email protected]"
  });
}
EOF
    }
  }
}

Verified this is getting set in the dashboard

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@siddiqui-io siddiqui-io requested a review from a team as a code owner November 20, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants