Documentation ¶
Index ¶
- Constants
- type SOIDCClient
- func (cli *SOIDCClient) FetchConfiguration(ctx context.Context, endpoint string) error
- func (cli *SOIDCClient) FetchJWKS(ctx context.Context) error
- func (cli *SOIDCClient) FetchToken(ctx context.Context, code string, redirUri string) (*oidcutils.SOIDCAccessTokenResponse, error)
- func (cli *SOIDCClient) FetchUserInfo(ctx context.Context, accessToken string) (map[string]string, error)
- func (cli *SOIDCClient) GetConfig() oidcutils.SOIDCConfiguration
- func (cli *SOIDCClient) SetConfig(authUrl, tokenUrl, userinfoUrl string, scopes []string)
Constants ¶
View Source
const (
WELL_KNOWN_OIDC_CONFIG_PATH = ".well-known/openid-configuration"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SOIDCClient ¶
type SOIDCClient struct {
// contains filtered or unexported fields
}
func NewOIDCClient ¶
func NewOIDCClient(clientId string, secret string, timeoutSeconds int, isDebug bool) *SOIDCClient
func (*SOIDCClient) FetchConfiguration ¶
func (cli *SOIDCClient) FetchConfiguration(ctx context.Context, endpoint string) error
func (*SOIDCClient) FetchToken ¶
func (cli *SOIDCClient) FetchToken(ctx context.Context, code string, redirUri string) (*oidcutils.SOIDCAccessTokenResponse, error)
func (*SOIDCClient) FetchUserInfo ¶
func (*SOIDCClient) GetConfig ¶
func (cli *SOIDCClient) GetConfig() oidcutils.SOIDCConfiguration
func (*SOIDCClient) SetConfig ¶
func (cli *SOIDCClient) SetConfig(authUrl, tokenUrl, userinfoUrl string, scopes []string)
Click to show internal directories.
Click to hide internal directories.