|
|
|
@ -18,6 +18,7 @@ type Oauth2 struct {
|
|
|
|
|
ClientID string `json:"client_id"`
|
|
|
|
|
ClientSecret string `json:"client_secret"`
|
|
|
|
|
RedirectURIs []string `json:"redirect_uris"`
|
|
|
|
|
ConfidentialClient bool `json:"confidential_client"`
|
|
|
|
|
Created time.Time `json:"created"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -29,6 +30,7 @@ type ListOauth2Option struct {
|
|
|
|
|
// CreateOauth2Option required options for creating an Application
|
|
|
|
|
type CreateOauth2Option struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
ConfidentialClient bool `json:"confidential_client"`
|
|
|
|
|
RedirectURIs []string `json:"redirect_uris"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|