Skip to content

Commit

Permalink
Add support for permission_resource_format/permission_resource_matchi…
Browse files Browse the repository at this point in the history
…ng_uri
  • Loading branch information
tomqwpl committed Jan 27, 2024
1 parent 2d728e2 commit 4f828c4
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -965,18 +965,20 @@ func (t *TokenOptions) FormData() map[string]string {

// RequestingPartyTokenOptions represents the options to obtain a requesting party token
type RequestingPartyTokenOptions struct {
GrantType *string `json:"grant_type,omitempty"`
Ticket *string `json:"ticket,omitempty"`
ClaimToken *string `json:"claim_token,omitempty"`
ClaimTokenFormat *string `json:"claim_token_format,omitempty"`
RPT *string `json:"rpt,omitempty"`
Permissions *[]string `json:"-"`
Audience *string `json:"audience,omitempty"`
ResponseIncludeResourceName *bool `json:"response_include_resource_name,string,omitempty"`
ResponsePermissionsLimit *uint32 `json:"response_permissions_limit,omitempty"`
SubmitRequest *bool `json:"submit_request,string,omitempty"`
ResponseMode *string `json:"response_mode,omitempty"`
SubjectToken *string `json:"subject_token,omitempty"`
GrantType *string `json:"grant_type,omitempty"`
Ticket *string `json:"ticket,omitempty"`
ClaimToken *string `json:"claim_token,omitempty"`
ClaimTokenFormat *string `json:"claim_token_format,omitempty"`
RPT *string `json:"rpt,omitempty"`
Permissions *[]string `json:"-"`
PermissionResourceFormat *string `json:"permission_resource_format,omitempty"`
PermissionResourceMatchingUri *bool `json:"permission_resource_matching_uri,string,omitempty"`

Check warning on line 975 in models.go

View workflow job for this annotation

GitHub Actions / tests

var-naming: struct field PermissionResourceMatchingUri should be PermissionResourceMatchingURI (revive)
Audience *string `json:"audience,omitempty"`
ResponseIncludeResourceName *bool `json:"response_include_resource_name,string,omitempty"`
ResponsePermissionsLimit *uint32 `json:"response_permissions_limit,omitempty"`
SubmitRequest *bool `json:"submit_request,string,omitempty"`
ResponseMode *string `json:"response_mode,omitempty"`
SubjectToken *string `json:"subject_token,omitempty"`
}

// FormData returns a map of options to be used in SetFormData function
Expand Down

0 comments on commit 4f828c4

Please sign in to comment.