Skip to content

Commit

Permalink
Add in additional SCIM Attributes to get parity to spec (#192)
Browse files Browse the repository at this point in the history
* Add in additional SCIM Attributes to get parity to spec

* Bump version
  • Loading branch information
bgier-stytch authored Aug 16, 2024
1 parent 84ca593 commit 15b392c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
33 changes: 31 additions & 2 deletions stytch/b2b/scim/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,21 @@ type EnterpriseExtension struct {
Manager *Manager `json:"manager,omitempty"`
}

type Entitlement struct {
Value string `json:"value,omitempty"`
Type string `json:"type,omitempty"`
Primary bool `json:"primary,omitempty"`
}

type Group struct {
Value string `json:"value,omitempty"`
Display string `json:"display,omitempty"`
}

type IMs struct {
Value string `json:"value,omitempty"`
Type string `json:"type,omitempty"`
Value string `json:"value,omitempty"`
Type string `json:"type,omitempty"`
Primary bool `json:"primary,omitempty"`
}

type Manager struct {
Expand All @@ -67,6 +74,18 @@ type PhoneNumber struct {
Primary bool `json:"primary,omitempty"`
}

type Photo struct {
Value string `json:"value,omitempty"`
Type string `json:"type,omitempty"`
Primary bool `json:"primary,omitempty"`
}

type Role struct {
Value string `json:"value,omitempty"`
Type string `json:"type,omitempty"`
Primary bool `json:"primary,omitempty"`
}

type SCIMAttributes struct {
UserName string `json:"user_name,omitempty"`
ID string `json:"id,omitempty"`
Expand All @@ -85,6 +104,10 @@ type SCIMAttributes struct {
PhoneNumbers []PhoneNumber `json:"phone_numbers,omitempty"`
Addresses []Address `json:"addresses,omitempty"`
Ims []IMs `json:"ims,omitempty"`
Photos []Photo `json:"photos,omitempty"`
Entitlements []Entitlement `json:"entitlements,omitempty"`
Roles []Role `json:"roles,omitempty"`
X509Certificates []X509Certificate `json:"x509certificates,omitempty"`
Name *Name `json:"name,omitempty"`
EnterpriseExtension *EnterpriseExtension `json:"enterprise_extension,omitempty"`
}
Expand Down Expand Up @@ -150,3 +173,9 @@ type SCIMGroupImplicitRoleAssignments struct {
GroupID string `json:"group_id,omitempty"`
GroupName string `json:"group_name,omitempty"`
}

type X509Certificate struct {
Value string `json:"value,omitempty"`
Type string `json:"type,omitempty"`
Primary bool `json:"primary,omitempty"`
}
2 changes: 1 addition & 1 deletion stytch/config/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package config

const APIVersion = "15.5.0"
const APIVersion = "15.5.1"

0 comments on commit 15b392c

Please sign in to comment.