Documentation ¶
Index ¶
- Constants
- Variables
- type Provider
- func (p *Provider) CheckCommonName(session state.State, tokens *oidc.Tokens[*idtoken.Claims]) error
- func (p *Provider) CheckGroups(tokens *oidc.Tokens[*idtoken.Claims]) error
- func (p *Provider) CheckIPAddress(session state.State, tokens *oidc.Tokens[*idtoken.Claims]) error
- func (p *Provider) CheckRoles(tokens *oidc.Tokens[*idtoken.Claims]) error
- func (p *Provider) CheckUser(_ context.Context, session state.State, _ types.UserData, ...) error
- func (p *Provider) GetName() string
- func (p *Provider) GetProviderConfig(conf config.Config) (types.ProviderConfig, error)
- func (p *Provider) GetRefreshToken(tokens *oidc.Tokens[*idtoken.Claims]) string
- func (p *Provider) GetUser(_ context.Context, logger *slog.Logger, tokens *oidc.Tokens[*idtoken.Claims]) (types.UserData, error)
- func (p *Provider) Refresh(ctx context.Context, logger *slog.Logger, relyingParty rp.RelyingParty, ...) (*oidc.Tokens[*idtoken.Claims], error)
- func (p *Provider) RevokeRefreshToken(ctx context.Context, logger *slog.Logger, relyingParty rp.RelyingParty, ...) error
Constants ¶
View Source
const Name = "generic"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Provider ¶
func NewProvider ¶
func (*Provider) CheckCommonName ¶
func (*Provider) CheckGroups ¶
func (*Provider) CheckIPAddress ¶
func (*Provider) CheckRoles ¶
func (*Provider) GetProviderConfig ¶
GetProviderConfig implements the github.com/JustARegularUsername/openvpn-auth-oauth2/internal/oauth2.Provider interface.
func (*Provider) GetRefreshToken ¶
Click to show internal directories.
Click to hide internal directories.