mongodb

package
v0.0.0-...-e0d3fc9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthnSessionManager

type AuthnSessionManager struct {
	Collection *mongo.Collection
}

func NewAuthnSessionManager

func NewAuthnSessionManager(database *mongo.Database) AuthnSessionManager

func (AuthnSessionManager) CreateOrUpdate

func (manager AuthnSessionManager) CreateOrUpdate(
	ctx context.Context,
	session *goidc.AuthnSession,
) error

func (AuthnSessionManager) Delete

func (manager AuthnSessionManager) Delete(
	ctx context.Context,
	id string,
) error

func (AuthnSessionManager) GetByAuthorizationCode

func (manager AuthnSessionManager) GetByAuthorizationCode(
	ctx context.Context,
	authorizationCode string,
) (
	*goidc.AuthnSession,
	error,
)

func (AuthnSessionManager) GetByCallbackID

func (manager AuthnSessionManager) GetByCallbackID(
	ctx context.Context,
	callbackID string,
) (
	*goidc.AuthnSession,
	error,
)

func (AuthnSessionManager) GetByRequestURI

func (manager AuthnSessionManager) GetByRequestURI(
	ctx context.Context,
	requestURI string,
) (
	*goidc.AuthnSession,
	error,
)

type ClientManager

type ClientManager struct {
	Collection *mongo.Collection
}

func NewClientManager

func NewClientManager(database *mongo.Database) ClientManager

func (ClientManager) CreateOrUpdate

func (manager ClientManager) CreateOrUpdate(
	ctx context.Context,
	client *goidc.Client,
) error

func (ClientManager) Delete

func (manager ClientManager) Delete(ctx context.Context, id string) error

func (ClientManager) Get

func (manager ClientManager) Get(ctx context.Context, id string) (*goidc.Client, error)

type GrantSessionManager

type GrantSessionManager struct {
	Collection *mongo.Collection
}

func NewGrantSessionManager

func NewGrantSessionManager(database *mongo.Database) GrantSessionManager

func (GrantSessionManager) CreateOrUpdate

func (manager GrantSessionManager) CreateOrUpdate(
	ctx context.Context,
	grantSession *goidc.GrantSession,
) error

func (GrantSessionManager) Delete

func (manager GrantSessionManager) Delete(
	ctx context.Context,
	id string,
) error

func (GrantSessionManager) GetByRefreshToken

func (manager GrantSessionManager) GetByRefreshToken(
	ctx context.Context,
	refreshToken string,
) (
	*goidc.GrantSession,
	error,
)

func (GrantSessionManager) GetByTokenID

func (manager GrantSessionManager) GetByTokenID(
	ctx context.Context,
	tokenID string,
) (
	*goidc.GrantSession,
	error,
)

Jump to

Keyboard shortcuts

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