Skip to content

Commit

Permalink
[GH-398] Refactor scopes schema and add Godoc documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed May 2, 2024
1 parent 2b3e239 commit c5a6023
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions management/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,12 @@ func (c *ConnectionOptionsOIDC) SetScopes(enable bool, scopes ...string) {

// ConnectionOptionsOAuth2 is used to configure an OAuth2 Connection.
type ConnectionOptionsOAuth2 struct {
ClientID *string `json:"client_id,omitempty"`
ClientSecret *string `json:"client_secret,omitempty"`
AuthorizationURL *string `json:"authorizationURL"`
TokenURL *string `json:"tokenURL"`
Scope *string `json:"scope,omitempty"`
ClientID *string `json:"client_id,omitempty"`
ClientSecret *string `json:"client_secret,omitempty"`
AuthorizationURL *string `json:"authorizationURL"`
TokenURL *string `json:"tokenURL"`
// Scope indicates the OAuth2 scopes for the connection. Use SetScopes and Scopes to manage scopes.
Scope *string `json:"-"`
SetUserAttributes *string `json:"set_user_root_attributes,omitempty"`
NonPersistentAttrs *[]string `json:"non_persistent_attrs,omitempty"`
LogoURL *string `json:"icon_url,omitempty"`
Expand Down

0 comments on commit c5a6023

Please sign in to comment.