oidcropc

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	OIDCTokenEndpoint string
	OIDCClientID      string
	OIDCClientSecret  string
}

Authenticator struct represents OIDC options for SMK Authentication.

func (*Authenticator) Init

func (a *Authenticator) Init(config *viper.Viper) error

Init method is used to ingest config of Authenticator

func (*Authenticator) Login

func (a *Authenticator) Login(ctx context.Context, payload []byte) (resultCtx context.Context, valid bool, id string, err error)

Login method is used to check if a couple of user/password is valid in OIDC.

type OIDCToken

type OIDCToken string

OIDCToken represents a OIDC userinfo token

type OIDCTokenKeyType

type OIDCTokenKeyType string

OIDCTokenKeyType represents an OIDC context key type

const OIDCTokenKey OIDCTokenKeyType = "oidcToken"

OIDCTokenKey represents an OIDC context key

Jump to

Keyboard shortcuts

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