Documentation ¶
Index ¶
- Constants
- func ClientCertFunc() goidc.ClientCertFunc
- func DCRFunc(scopes []goidc.Scope) goidc.HandleDynamicClientFunc
- func DecryptFunc(kmsClient *kms.Client, kmsEncKeyAlias string) goidc.DecryptFunc
- func HandleGrantFunc(consentService consent.Service) goidc.HandleGrantFunc
- func JWKSFunc(kmsClient *kms.Client, kmsSigKeyAlias, kmsEncKeyAlias string) goidc.JWKSFunc
- func LogErrorFunc() goidc.NotifyErrorFunc
- func Policy(templatesDir, baseURL string, userService user.Service, ...) goidc.AuthnPolicy
- func ShoudIssueRefreshTokenFunc() goidc.ShouldIssueRefreshTokenFunc
- func SignFunc(kmsClient *kms.Client, kmsSigKeyAlias string) goidc.SignFunc
- func TokenOptionsFunc() goidc.TokenOptionsFunc
- type AuthnSessionManager
- func (manager AuthnSessionManager) Delete(ctx context.Context, id string) error
- func (manager AuthnSessionManager) Save(ctx context.Context, session *goidc.AuthnSession) error
- func (manager AuthnSessionManager) SessionByAuthCode(ctx context.Context, authorizationCode string) (*goidc.AuthnSession, error)
- func (manager AuthnSessionManager) SessionByCIBAAuthID(ctx context.Context, id string) (*goidc.AuthnSession, error)
- func (manager AuthnSessionManager) SessionByCallbackID(ctx context.Context, callbackID string) (*goidc.AuthnSession, error)
- func (manager AuthnSessionManager) SessionByPushedAuthReqID(ctx context.Context, id string) (*goidc.AuthnSession, error)
- type ClientManager
- type GrantSessionManager
- func (manager GrantSessionManager) Delete(ctx context.Context, id string) error
- func (m GrantSessionManager) DeleteByAuthorizationCode(context.Context, string) error
- func (manager GrantSessionManager) Save(ctx context.Context, grantSession *goidc.GrantSession) error
- func (manager GrantSessionManager) SessionByRefreshToken(ctx context.Context, token string) (*goidc.GrantSession, error)
- func (manager GrantSessionManager) SessionByTokenID(ctx context.Context, id string) (*goidc.GrantSession, error)
Constants ¶
View Source
const (
HeaderClientCert = "X-Client-Cert"
)
Variables ¶
This section is empty.
Functions ¶
func ClientCertFunc ¶
func ClientCertFunc() goidc.ClientCertFunc
func DecryptFunc ¶
func DecryptFunc(kmsClient *kms.Client, kmsEncKeyAlias string) goidc.DecryptFunc
func HandleGrantFunc ¶
func HandleGrantFunc(consentService consent.Service) goidc.HandleGrantFunc
func LogErrorFunc ¶
func LogErrorFunc() goidc.NotifyErrorFunc
func ShoudIssueRefreshTokenFunc ¶
func ShoudIssueRefreshTokenFunc() goidc.ShouldIssueRefreshTokenFunc
func TokenOptionsFunc ¶
func TokenOptionsFunc() goidc.TokenOptionsFunc
Types ¶
type AuthnSessionManager ¶
type AuthnSessionManager struct {
Collection *mongo.Collection
}
func NewAuthnSessionManager ¶
func NewAuthnSessionManager(database *mongo.Database) AuthnSessionManager
func (AuthnSessionManager) Delete ¶
func (manager AuthnSessionManager) Delete( ctx context.Context, id string, ) error
func (AuthnSessionManager) Save ¶
func (manager AuthnSessionManager) Save( ctx context.Context, session *goidc.AuthnSession, ) error
func (AuthnSessionManager) SessionByAuthCode ¶
func (manager AuthnSessionManager) SessionByAuthCode( ctx context.Context, authorizationCode string, ) ( *goidc.AuthnSession, error, )
func (AuthnSessionManager) SessionByCIBAAuthID ¶
func (manager AuthnSessionManager) SessionByCIBAAuthID( ctx context.Context, id string, ) ( *goidc.AuthnSession, error, )
func (AuthnSessionManager) SessionByCallbackID ¶
func (manager AuthnSessionManager) SessionByCallbackID( ctx context.Context, callbackID string, ) ( *goidc.AuthnSession, error, )
func (AuthnSessionManager) SessionByPushedAuthReqID ¶
func (manager AuthnSessionManager) SessionByPushedAuthReqID( ctx context.Context, id string, ) ( *goidc.AuthnSession, error, )
type ClientManager ¶
type ClientManager struct {
Collection *mongo.Collection
}
func NewClientManager ¶
func NewClientManager(database *mongo.Database) ClientManager
type GrantSessionManager ¶
type GrantSessionManager struct {
Collection *mongo.Collection
}
func NewGrantSessionManager ¶
func NewGrantSessionManager(database *mongo.Database) GrantSessionManager
func (GrantSessionManager) Delete ¶
func (manager GrantSessionManager) Delete( ctx context.Context, id string, ) error
func (GrantSessionManager) DeleteByAuthorizationCode ¶
func (m GrantSessionManager) DeleteByAuthorizationCode(context.Context, string) error
func (GrantSessionManager) Save ¶
func (manager GrantSessionManager) Save( ctx context.Context, grantSession *goidc.GrantSession, ) error
func (GrantSessionManager) SessionByRefreshToken ¶
func (manager GrantSessionManager) SessionByRefreshToken( ctx context.Context, token string, ) ( *goidc.GrantSession, error, )
func (GrantSessionManager) SessionByTokenID ¶
func (manager GrantSessionManager) SessionByTokenID( ctx context.Context, id string, ) ( *goidc.GrantSession, error, )
Click to show internal directories.
Click to hide internal directories.