client

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) FetchJWKS

func (cli *SOIDCClient) FetchJWKS(ctx context.Context) error

func (*SOIDCClient) FetchToken

func (cli *SOIDCClient) FetchToken(ctx context.Context, code string, redirUri string) (*oidcutils.SOIDCAccessTokenResponse, error)

func (*SOIDCClient) FetchUserInfo

func (cli *SOIDCClient) FetchUserInfo(ctx context.Context, accessToken string) (map[string]string, error)

func (*SOIDCClient) GetConfig

func (cli *SOIDCClient) GetConfig() oidcutils.SOIDCConfiguration

func (*SOIDCClient) SetConfig

func (cli *SOIDCClient) SetConfig(authUrl, tokenUrl, userinfoUrl string, scopes []string)

Jump to

Keyboard shortcuts

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