Documentation
¶
Index ¶
Constants ¶
View Source
const ( // See cmd/oidc.go for documentation on these cli parameters OIDCIssuer = "issuer" OIDCIssuerAuthorizePath = "issuer-authorize-path" OIDCIssuerTokenPath = "issuer-token-path" OIDCIssuerCA = "issuer-ca" OIDCIssuerUserScope = "issuer-user-scope" OIDCClientID = "client-id" OIDCRefreshToken = "refresh-token" OIDCCallbackAddr = "callback-addr" OIDCCallbackAuthorizePath = "callback-authorize-path" KubernetesClusterID = "cluster-id" KubernetesReauth = "reauth" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OIDCAuthorizeRequest ¶
type OIDCAuthorizeRequest struct {
ClientID string
Nonce string
RedirectURI string
ResponseType string
State string
Scope string
// Required PKCE fields
CodeChallenge string
CodeChallengeMedthod string
}
func (OIDCAuthorizeRequest) ToURLParams ¶
func (r OIDCAuthorizeRequest) ToURLParams(issuer url.URL, authorizePath string) string
type OIDCAuthorizeResponse ¶
type OIDCConfig ¶
type OIDCConfig struct {
Issuer *url.URL
IssuerAuthorizePath string
IssuerTokenPath string
IssuerCAPath string
IssuerUserScope string
ClientID string
OfflineAccess bool
CallbackAddr string
CallbackAuthorizePath string
KubernetesClusterID string
KubernetesReauth bool
}
func (*OIDCConfig) FromCobraCommand ¶
func (o *OIDCConfig) FromCobraCommand(cmd *cobra.Command) error
type OIDCTokenRequest ¶
type OIDCTokenRequest struct {
ClientID string
Code string
GrantType string
RedirectURI string
RefreshToken string
Scope string
// Required PKCE field in lieu of client secret
CodeVerifier string
}
func (OIDCTokenRequest) ToFormData ¶
func (r OIDCTokenRequest) ToFormData() string
type OIDCTokenResponse ¶
Click to show internal directories.
Click to hide internal directories.