-
Notifications
You must be signed in to change notification settings - Fork 79
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
DXCDT-474: Integrate with the go-auth0 beta branch #652
Conversation
f8aa35d
to
3a57771
Compare
Codecov Report
|
@@ -32,7 +32,6 @@ data "auth0_client" "some-client-by-id" { | |||
|
|||
### Read-Only | |||
|
|||
- `addons` (List of Object) Addons enabled for this client and their associated configurations. (see [below for nested schema](#nestedatt--addons)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addons are temporarily removed within the v1 branch as to not include too many changes within this PR. The next follow up PR will be adjusting the client addons schema with the proper terraform schema and go types.
} | ||
|
||
return api.ResourceServer.Stream(fn, management.IncludeFields("id", "name")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Stream func got removed from v1 beta go-auth0.
@@ -87,17 +89,20 @@ func userAgent(terraformVersion *string) string { | |||
|
|||
// authenticationOption computes the desired authentication option for the *management.Management client. | |||
func authenticationOption(clientID, clientSecret, apiToken, audience string) management.Option { | |||
ctx := context.Background() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be needed as otherwise we're gonna have the context canceled after a few API calls as the CRUD funcs will do a ctx.Done() call.
E2E tests are passing against this branch: https://github.com/auth0/terraform-provider-auth0/actions/runs/5358821368/jobs/9721626291 |
54a2007
to
2416438
Compare
* Initial commit, tests passing for auth0 connection * Making strategy inferred, expanding entire connection now * types file into base * Removing notes * Renaming package name * Generated docs * Moving into existing connection package * Regenerating docs, additional renamings * Regenerating docs * Recording test * Cloning schema * Pulling-out description into parameter * Fixing flattening of configuration property * Fixing warning text * Renaming package name --------- Co-authored-by: Will Vedder <[email protected]>
This reverts commit e600c0e.
ca73c42
to
565a0c4
Compare
🔧 Changes
The go-auth0 SDK is scheduled for an upcoming v1-beta release. In order to pre-emptively test some of the major changes introduced we are temporarily pointing to the latest commit on the beta branch https://github.com/auth0/go-auth0/tree/beta and going forward with updating our codebase to prepare for it. The integration is happening only on our v1 branch and this will not get released until we can update our go.mod to point to a proper v1 tag for the go-auth0 SDK.
To note that considering the go-auth0 v1 beta introduced type changes to the client addons, we are temporarily removing them from our code base within the v1 branch. The next PR after this one will be the work to re-introduce the client addons with proper types and an updated terraform config schema.
📚 References
🔬 Testing
📝 Checklist