Documentation ¶
Index ¶
- Constants
- Variables
- type Configuration
- type KeyPair
- type Manager
- func (m *Manager) AuthenticationMiddleware(config *oidc.Config, next http.Handler) http.Handler
- func (m *Manager) CallbackHandlerOidc(config *oidc.Config, postLoginRedirectURI string) http.Handler
- func (m *Manager) GetSession(r *http.Request, config *oidc.Config) (*Session, error)
- func (m *Manager) LoginHandlerOidc(config *oidc.Config) http.Handler
- func (m *Manager) LogoutHandlerOidc(config *oidc.Config, postLogoutRedirectURI string) http.Handler
- func (m *Manager) NewSession(r *http.Request, config *oidc.Config) (*Session, error)
- func (m *Manager) UserInfoHandlerOidc(config *oidc.Config) http.Handler
- func (m *Manager) WaitSessionCleaner(ctx context.Context)
- type Session
Constants ¶
View Source
const (
ContextKeyAccessTokenName contextKey = iota
)
Variables ¶
View Source
var ( ErrWrongAuthSecretSize = errors.New("the session authentication key should have a size of 32 or 64 bytes") ErrWrongEncSecretSize = errors.New("the session encryption key should have a size of 16, 24 or 32 bytes") )
View Source
var ( ErrCannotCreateCookie = errors.New("cannot create a new cookie") ErrCannotGetCookie = errors.New("cannot get the cookie") ErrSessionNotFound = errors.New("cannot retrieve session from storage") ErrCannotRetrieveSessionData = errors.New("cannot retrieve session data") ErrSessionInvalid = errors.New("cannot retrieve session id from memory") )
View Source
var (
ErrNilValue = errors.New("you cannot pass a nil value")
)
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(ctx context.Context, c Configuration) (*Manager, error)
func (*Manager) AuthenticationMiddleware ¶
func (*Manager) CallbackHandlerOidc ¶
func (*Manager) GetSession ¶
func (*Manager) LoginHandlerOidc ¶
func (*Manager) LogoutHandlerOidc ¶
func (*Manager) NewSession ¶
func (*Manager) UserInfoHandlerOidc ¶
func (*Manager) WaitSessionCleaner ¶
Click to show internal directories.
Click to hide internal directories.