Versions in this module Expand all Collapse all v1 v1.13.0 Sep 13, 2024 Changes in this version + func Base64urlSha256(value string) string + type AuthCodeClient struct + func NewAuthCodeClient(evalCtx *hcl.EvalContext, acClientConf config.OAuth2AcClient, ...) (*AuthCodeClient, error) + func (a *AuthCodeClient) ExchangeCodeAndGetTokenResponse(req *http.Request, callbackURL *url.URL) (map[string]interface{}, error) + type AuthCodeFlowClient interface + ExchangeCodeAndGetTokenResponse func(req *http.Request, callbackURL *url.URL) (map[string]interface{}, error) + type Client struct + func NewClient(evalCtx *hcl.EvalContext, grantType string, asConfig config.OAuth2AS, ...) (*Client, error) + func (c *Client) GetTokenResponse(ctx context.Context, formParams url.Values) (map[string]interface{}, string, error) + type OidcClient struct + func NewOidcClient(evalCtx *hcl.EvalContext, oidcConfig *oidc.Config) (*OidcClient, error) + func (o *OidcClient) ExchangeCodeAndGetTokenResponse(req *http.Request, callbackURL *url.URL) (map[string]interface{}, error)