Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

Commit a6beadf

Browse files
author
Yvo
authored
Merge pull request #216 from sethyates/master
Implement Organizations Management API
2 parents 8be98bb + 0d19cea commit a6beadf

File tree

6 files changed

+989
-0
lines changed

6 files changed

+989
-0
lines changed

management/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ type Client struct {
9292

9393
NativeSocialLogin *ClientNativeSocialLogin `json:"native_social_login,omitempty"`
9494
RefreshToken *ClientRefreshToken `json:"refresh_token,omitempty"`
95+
96+
OrganizationUsage *string `json:"organization_usage,omitempty"`
97+
OrganizationRequireBehavior *string `json:"organization_require_behavior,omitempty"`
9598
}
9699

97100
type ClientJWTConfiguration struct {

management/management.gen.go

Lines changed: 334 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

management/management.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ type Management struct {
162162
// Actions manages Actions extensibility
163163
Action *ActionManager
164164

165+
// Organization manages Auth0 Organizations.
166+
Organization *OrganizationManager
167+
165168
url *url.URL
166169
basePath string
167170
userAgent string
@@ -231,6 +234,7 @@ func New(domain string, options ...ManagementOption) (*Management, error) {
231234
m.SigningKey = newSigningKeyManager(m)
232235
m.Anomaly = newAnomalyManager(m)
233236
m.Action = newActionManager(m)
237+
m.Organization = newOrganizationManager(m)
234238

235239
return m, nil
236240
}

0 commit comments

Comments
 (0)