Documentation ¶
Overview ¶
Package oidcclient provides a client of OpenID Connect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(Factory), "*"), wire.Bind(new(FactoryInterface), new(*Factory)), )
Set provides an implementation and interface for OIDC.
Functions ¶
This section is empty.
Types ¶
type AuthCodeURLInput ¶
type Config ¶
type Config struct { IssuerURL string ClientID string ClientSecret string ExtraScopes []string // optional CertPool certpool.Interface SkipTLSVerify bool }
Config represents a configuration of OpenID Connect client.
type ExchangeAuthCodeInput ¶
type FactoryInterface ¶
type GetTokenByAuthCodeInput ¶
type Interface ¶
type Interface interface { GetAuthCodeURL(in AuthCodeURLInput) string ExchangeAuthCode(ctx context.Context, in ExchangeAuthCodeInput) (*TokenSet, error) GetTokenByAuthCode(ctx context.Context, in GetTokenByAuthCodeInput, localServerReadyChan chan<- string) (*TokenSet, error) GetTokenByROPC(ctx context.Context, username, password string) (*TokenSet, error) Refresh(ctx context.Context, refreshToken string) (*TokenSet, error) }
type TokenSet ¶
type TokenSet struct { IDToken string RefreshToken string IDTokenSubject string IDTokenExpiry time.Time IDTokenClaims map[string]string // string representation of claims for logging }
TokenSet represents an output DTO of Interface.GetTokenByAuthCode, Interface.GetTokenByROPC and Interface.Refresh.
Directories ¶
Path | Synopsis |
---|---|
Package mock_oidcclient is a generated GoMock package.
|
Package mock_oidcclient is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.