Documentation
¶
Overview ¶
Package v1 provides v1 functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDCSessionStore ¶
type OIDCSessionStore interface {
ListUserSessions(ctx context.Context, userID string) (map[string]*idp.OIDCSession, error)
DeleteUserSession(ctx context.Context, userID string, managementID string) error
FlushUserTokens(ctx context.Context, userID string) error
}
OIDCSessionStore is the narrow session-management storage contract used by the management API boundary.
type OIDCSessionsAPI ¶
type OIDCSessionsAPI struct {
// contains filtered or unexported fields
}
OIDCSessionsAPI handles backchannel API requests for OIDC sessions.
func NewOIDCSessionsAPI ¶
func NewOIDCSessionsAPI(d *deps.Deps, storage OIDCSessionStore) *OIDCSessionsAPI
NewOIDCSessionsAPI creates a new OIDCSessionsAPI.
func (*OIDCSessionsAPI) DeleteAllSessions ¶
func (a *OIDCSessionsAPI) DeleteAllSessions(ctx *gin.Context)
DeleteAllSessions deletes all OIDC sessions for a user.
func (*OIDCSessionsAPI) DeleteSession ¶
func (a *OIDCSessionsAPI) DeleteSession(ctx *gin.Context)
DeleteSession deletes a specific OIDC session for a user.
func (*OIDCSessionsAPI) ListSessions ¶
func (a *OIDCSessionsAPI) ListSessions(ctx *gin.Context)
ListSessions returns all active OIDC sessions for a user.
func (*OIDCSessionsAPI) Register ¶
func (a *OIDCSessionsAPI) Register(router gin.IRouter)
Register registers the API routes.
Click to show internal directories.
Click to hide internal directories.