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

DXCDT-474: Integrate with the go-auth0 beta branch #652

Merged
merged 9 commits into from
Jun 27, 2023
Merged

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Jun 22, 2023

🔧 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

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

@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2023

Codecov Report

❗ No coverage uploaded for pull request base (v1@2416438). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##             v1     #652   +/-   ##
=====================================
  Coverage      ?   86.51%           
=====================================
  Files         ?       80           
  Lines         ?    11720           
  Branches      ?        0           
=====================================
  Hits          ?    10139           
  Misses        ?     1209           
  Partials      ?      372           

@@ -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))
Copy link
Contributor Author

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"))
Copy link
Contributor Author

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.

@sergiught sergiught marked this pull request as ready for review June 23, 2023 15:08
@sergiught sergiught requested a review from a team as a code owner June 23, 2023 15:08
@sergiught sergiught marked this pull request as draft June 23, 2023 15:55
@sergiught sergiught marked this pull request as ready for review June 23, 2023 17:12
@@ -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()
Copy link
Contributor Author

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.

@sergiught
Copy link
Contributor Author

willvedd and others added 8 commits June 25, 2023 22:00
* 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]>
@sergiught sergiught merged commit c0bb5c8 into v1 Jun 27, 2023
3 checks passed
@sergiught sergiught deleted the patch/go-sdk-beta branch June 27, 2023 12:38
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.

4 participants