oidc

package
v0.0.0-...-e656f7d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderClientCert = "X-Client-Cert"
)

Variables

This section is empty.

Functions

func ClientCertFunc

func ClientCertFunc() goidc.ClientCertFunc

func DCRFunc

func DCRFunc(scopes []goidc.Scope) goidc.HandleDynamicClientFunc

func DecryptFunc

func DecryptFunc(kmsClient *kms.Client, kmsEncKeyAlias string) goidc.DecryptFunc

func HandleGrantFunc

func HandleGrantFunc(consentService consent.Service) goidc.HandleGrantFunc

func JWKSFunc

func JWKSFunc(kmsClient *kms.Client, kmsSigKeyAlias, kmsEncKeyAlias string) goidc.JWKSFunc

func LogErrorFunc

func LogErrorFunc() goidc.NotifyErrorFunc

func Policy

func Policy(
	templatesDir, baseURL string,
	userService user.Service,
	consentService consent.Service,
) goidc.AuthnPolicy

func ShoudIssueRefreshTokenFunc

func ShoudIssueRefreshTokenFunc() goidc.ShouldIssueRefreshTokenFunc

func SignFunc

func SignFunc(kmsClient *kms.Client, kmsSigKeyAlias string) goidc.SignFunc

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

func (ClientManager) Client

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

func (ClientManager) Delete

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

func (ClientManager) Save

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

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,
)

Jump to

Keyboard shortcuts

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