Documentation ¶
Index ¶
- type AuthnSessionManager
- func (manager AuthnSessionManager) CreateOrUpdate(ctx context.Context, session *goidc.AuthnSession) error
- func (manager AuthnSessionManager) Delete(ctx context.Context, id string) error
- func (manager AuthnSessionManager) GetByAuthorizationCode(ctx context.Context, authorizationCode string) (*goidc.AuthnSession, error)
- func (manager AuthnSessionManager) GetByCallbackID(ctx context.Context, callbackID string) (*goidc.AuthnSession, error)
- func (manager AuthnSessionManager) GetByRequestURI(ctx context.Context, requestURI string) (*goidc.AuthnSession, error)
- type ClientManager
- type GrantSessionManager
- func (manager GrantSessionManager) CreateOrUpdate(ctx context.Context, grantSession *goidc.GrantSession) error
- func (manager GrantSessionManager) Delete(ctx context.Context, id string) error
- func (manager GrantSessionManager) GetByRefreshToken(ctx context.Context, refreshToken string) (*goidc.GrantSession, error)
- func (manager GrantSessionManager) GetByTokenID(ctx context.Context, tokenID string) (*goidc.GrantSession, error)
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 ¶
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, )
Click to show internal directories.
Click to hide internal directories.