oauth2client

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

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

func (c *Client) GetAudience() fosite.Arguments

GetAudience returns the client audience.

func (*Client) GetGrantTypes added in v1.1.0

func (c *Client) GetGrantTypes() fosite.Arguments

GetGrantTypes returns the client grant types.

func (*Client) GetHashedSecret added in v1.1.0

func (c *Client) GetHashedSecret() []byte

GetHashedSecret returns the hashed client secret.

func (*Client) GetID added in v1.1.0

func (c *Client) GetID() string

GetID returns the client id.

func (*Client) GetRedirectURIs added in v1.1.0

func (c *Client) GetRedirectURIs() []string

GetRedirectURIs returns the client redirect URIs.

func (*Client) GetResponseTypes added in v1.1.0

func (c *Client) GetResponseTypes() fosite.Arguments

GetResponseTypes returns the client response types.

func (*Client) GetScopes added in v1.1.0

func (c *Client) GetScopes() fosite.Arguments

GetScopes returns the client scopes.

func (*Client) IsPublic added in v1.1.0

func (c *Client) IsPublic() bool

IsPublic returns true if the client is public.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL