Skip to content

Commit 89f234d

Browse files
authored
Custom attributes for third party app (#682)
1 parent 1e5c653 commit 89f234d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

descope/internal/mgmt/third_party_application.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ func makeCreateUpdateThirdPartyApplicationRequest(appRequest *descope.ThirdParty
225225
"permissionsScopes": appRequest.PermissionsScopes,
226226
"attributesScopes": appRequest.AttributesScopes,
227227
"jwtBearerSettings": appRequest.JWTBearerSettings,
228+
"customAttributes": appRequest.CustomAttributes,
228229
}
229230
}
230231

descope/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,7 @@ type ThirdPartyApplication struct {
13411341
PermissionsScopes []*ThirdPartyApplicationScope `json:"permissionsScopes"`
13421342
AttributesScopes []*ThirdPartyApplicationScope `json:"attributesScopes"`
13431343
JWTBearerSettings *JWTBearerSettings `json:"jwtBearerSettings,omitempty"`
1344+
CustomAttributes map[string]any `json:"customAttributes,omitempty"`
13441345
}
13451346

13461347
type ThirdPartyApplicationRequest struct {
@@ -1353,6 +1354,7 @@ type ThirdPartyApplicationRequest struct {
13531354
PermissionsScopes []*ThirdPartyApplicationScope `json:"permissionsScopes"`
13541355
AttributesScopes []*ThirdPartyApplicationScope `json:"attributesScopes"`
13551356
JWTBearerSettings *JWTBearerSettings `json:"jwtBearerSettings,omitempty"`
1357+
CustomAttributes map[string]any `json:"customAttributes,omitempty"`
13561358
}
13571359

13581360
// Options for loading third party applications

0 commit comments

Comments
 (0)