Documentation
¶
Index ¶
- Constants
- func GrantTypesSupported() []string
- func ResponseTypesSupported() []string
- func TokenEndpointAuthMethodsSupported() []string
- type Client
- func (c *Client) GetAudience() fosite.Arguments
- func (c *Client) GetGrantTypes() fosite.Arguments
- func (c *Client) GetHashedSecret() []byte
- func (c *Client) GetID() string
- func (c *Client) GetRedirectURIs() []string
- func (c *Client) GetResponseTypes() fosite.Arguments
- func (c *Client) GetScopes() fosite.Arguments
- func (c *Client) IsPublic() bool
Constants ¶
View Source
const ( GrantTypeAuthorizationCode = "authorization_code" GrantTypePreAuthorizedCode = "urn:ietf:params:oauth:grant-type:pre-authorized_code" ResponseTypeCode = "code" TokenEndpointAuthMethodNone = "none" TokenEndpointAuthMethodClientSecretBasic = "client_secret_basic" TokenEndpointAuthMethodClientSecretPost = "client_secret_post" )
Variables ¶
This section is empty.
Functions ¶
func GrantTypesSupported ¶ added in v1.3.0
func GrantTypesSupported() []string
GrantTypesSupported returns grant types supported by the VCS OIDC provider.
func ResponseTypesSupported ¶ added in v1.3.0
func ResponseTypesSupported() []string
ResponseTypesSupported returns response types supported by the VCS OIDC provider.
func TokenEndpointAuthMethodsSupported ¶ added in v1.3.0
func TokenEndpointAuthMethodsSupported() []string
TokenEndpointAuthMethodsSupported returns client authentication methods supported by the VCS token endpoint.
Types ¶
type Client ¶
type Client struct {
ID string `json:"client_id"`
Name string `json:"client_name"`
URI string `json:"client_uri"`
Secret []byte `json:"client_secret,omitempty"`
SecretExpiresAt int64 `json:"client_secret_expires_at,omitempty"`
RotatedSecrets [][]byte `json:"rotated_secrets,omitempty"`
RedirectURIs []string `json:"redirect_uris"`
GrantTypes []string `json:"grant_types"`
ResponseTypes []string `json:"response_types"`
Scopes []string `json:"scopes"`
Audience []string `json:"audience"`
LogoURI string `json:"logo_uri,omitempty"`
Contacts []string `json:"contacts,omitempty"`
TermsOfServiceURI string `json:"tos_uri,omitempty"`
PolicyURI string `json:"policy_uri,omitempty"`
JSONWebKeysURI string `json:"jwks_uri,omitempty"`
JSONWebKeys *jose.JSONWebKeySet `json:"jwks,omitempty"`
SoftwareID string `json:"software_id,omitempty"`
SoftwareVersion string `json:"software_version,omitempty"`
TokenEndpointAuthMethod string `json:"token_endpoint_auth_method,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty" db:"created_at"`
}
Client represents an OAuth2 client.
func (*Client) GetAudience ¶ added in v1.1.0
GetAudience returns the client audience.
func (*Client) GetGrantTypes ¶ added in v1.1.0
GetGrantTypes returns the client grant types.
func (*Client) GetHashedSecret ¶ added in v1.1.0
GetHashedSecret returns the hashed client secret.
func (*Client) GetRedirectURIs ¶ added in v1.1.0
GetRedirectURIs returns the client redirect URIs.
func (*Client) GetResponseTypes ¶ added in v1.1.0
GetResponseTypes returns the client response types.
Click to show internal directories.
Click to hide internal directories.