Versions in this module Expand all Collapse all v1 v1.8.1 Jun 27, 2023 Changes in this version + func LogAction(msg string) func(string) + func LogAssertion(request oauth2.Request, title string, name string) + func LogAuthMethod(config oauth2.ClientConfig) + func LogBox(title string, msg string, args ...interface{}) + func LogError(err error) + func LogHeader(msg string) + func LogInputData(cc oauth2.ClientConfig) + func LogJARM(request oauth2.Request) + func LogJson(value interface{}) + func LogKey(name string, key interface{}) + func LogRequest(r oauth2.Request) + func LogRequestAndResponse(request oauth2.Request, response interface{}) + func LogRequestAndResponseln(request oauth2.Request, response interface{}) + func LogRequestObject(r oauth2.Request) + func LogRequestln(request oauth2.Request) + func LogSection(msg string) + func LogSubjectTokenAndActorToken(request oauth2.Request) + func LogTokenPayload(response oauth2.TokenResponse) + func LogTokenPayloadln(response oauth2.TokenResponse) + func LogWarning(msg string) + func Logfln(msg string, args ...interface{}) + func Logln() + func PromptBool(name string) (ret bool) + func PromptForClientConfig(client oauth2.ClientConfig, server oauth2.ServerConfig) oauth2.ClientConfig + func PromptMultiStringSlice(name string, options []string) (ret []string) + func PromptString(name string) (ret string) + func PromptStringSlice(name string, options []string) (ret string) + type Config struct + ClientID string + ClientSecret string + OpenIDDiscoveryEndpoint string + func (c Config) ToClientConfig() oauth2.ClientConfig + type OAuth2Cmd struct + func NewOAuth2Cmd() (cmd *OAuth2Cmd) + func (c *OAuth2Cmd) AuthorizationCodeGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) Authorize(clientConfig oauth2.ClientConfig, hc *http.Client) error + func (c *OAuth2Cmd) ClientCredentialsGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) DeviceGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) ImplicitGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) JWTBearerGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) PasswordGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) PrintResult(result interface{}) + func (c *OAuth2Cmd) RefreshTokenGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error + func (c *OAuth2Cmd) Run(cconfig *oauth2.ClientConfig) func(cmd *cobra.Command, args []string) + func (c *OAuth2Cmd) TokenExchangeGrantFlow(clientConfig oauth2.ClientConfig, serverConfig oauth2.ServerConfig, ...) error