admin

package
v0.0.0-...-81dc835 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 89 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	deps.RequestDependencySet,
	deps.CommonDependencySet,

	middleware.DependencySet,

	nonce.DependencySet,
	wire.Bind(new(interaction.NonceService), new(*nonce.Service)),

	loader.DependencySet,
	wire.Bind(new(loader.UserLoaderUserService), new(*user.Queries)),
	wire.Bind(new(loader.IdentityLoaderIdentityService), new(*identityservice.Service)),
	wire.Bind(new(loader.AuthenticatorLoaderAuthenticatorService), new(*authenticatorservice.Service)),
	wire.Bind(new(loader.RoleLoaderRoles), new(*rolesgroups.Queries)),
	wire.Bind(new(loader.GroupLoaderGroups), new(*rolesgroups.Queries)),
	wire.Bind(new(loader.AuditLogQuery), new(*audit.Query)),

	facade.DependencySet,
	wire.Bind(new(facade.UserService), new(*libfacade.UserFacade)),
	wire.Bind(new(facade.RolesGroupsCommands), new(*rolesgroups.Commands)),
	wire.Bind(new(facade.RolesGroupsQueries), new(*rolesgroups.Queries)),
	wire.Bind(new(facade.IdentityService), new(*libfacade.IdentityFacade)),
	wire.Bind(new(facade.UserSearchService), new(*search.Service)),
	wire.Bind(new(facade.AuthenticatorService), new(*authenticatorservice.Service)),
	wire.Bind(new(facade.InteractionService), new(*service.InteractionService)),
	wire.Bind(new(facade.VerificationService), new(*libfacade.AdminVerificationFacade)),
	wire.Bind(new(facade.StandardAttributesService), new(*featurestdattrs.ServiceNoEvent)),
	wire.Bind(new(facade.CustomAttributesService), new(*featurecustomattrs.ServiceNoEvent)),
	wire.Bind(new(facade.SessionManager), new(*session.Manager)),
	wire.Bind(new(facade.AuditLogQuery), new(*audit.Query)),
	wire.Bind(new(facade.EventService), new(*event.Service)),
	wire.Bind(new(facade.AuthorizationService), new(*oauth.AuthorizationService)),
	wire.Bind(new(facade.OAuthAuthorizationService), new(*oauth.AuthorizationService)),
	wire.Bind(new(facade.OAuthTokenService), new(*oauthhandler.TokenService)),

	wire.Bind(new(facade.OAuthClientResolver), new(*oauthclient.Resolver)),

	graphql.DependencySet,
	wire.Bind(new(graphql.UserLoader), new(*loader.UserLoader)),
	wire.Bind(new(graphql.IdentityLoader), new(*loader.IdentityLoader)),
	wire.Bind(new(graphql.AuthenticatorLoader), new(*loader.AuthenticatorLoader)),
	wire.Bind(new(graphql.AuditLogLoader), new(*loader.AuditLogLoader)),
	wire.Bind(new(graphql.RoleLoader), new(*loader.RoleLoader)),
	wire.Bind(new(graphql.GroupLoader), new(*loader.GroupLoader)),
	wire.Bind(new(graphql.UserFacade), new(*facade.UserFacade)),
	wire.Bind(new(graphql.RolesGroupsFacade), new(*facade.RolesGroupsFacade)),
	wire.Bind(new(graphql.IdentityFacade), new(*facade.IdentityFacade)),
	wire.Bind(new(graphql.AuthenticatorFacade), new(*facade.AuthenticatorFacade)),
	wire.Bind(new(graphql.VerificationFacade), new(*facade.VerificationFacade)),
	wire.Bind(new(graphql.SessionFacade), new(*facade.SessionFacade)),
	wire.Bind(new(graphql.AuditLogFacade), new(*facade.AuditLogFacade)),
	wire.Bind(new(graphql.UserProfileFacade), new(*facade.UserProfileFacade)),
	wire.Bind(new(graphql.AuthorizationFacade), new(*facade.AuthorizationFacade)),
	wire.Bind(new(graphql.OAuthFacade), new(*facade.OAuthFacade)),
	wire.Bind(new(graphql.SessionListingService), new(*sessionlisting.SessionListingService)),
	wire.Bind(new(graphql.OTPCodeService), new(*otp.Service)),
	wire.Bind(new(graphql.ForgotPasswordService), new(*forgotpassword.Service)),
	wire.Bind(new(graphql.EventService), new(*event.Service)),

	service.DependencySet,
	wire.Bind(new(service.InteractionGraphService), new(*interaction.Service)),

	transport.DependencySet,
	wire.Bind(new(transport.JSONResponseWriter), new(*httputil.JSONResponseWriter)),
	wire.Bind(new(transport.PresignProvider), new(*presign.Provider)),
	wire.Bind(new(transport.UserImportJobEnqueuer), new(*userimport.JobManager)),
	wire.Bind(new(transport.UserImportJobGetter), new(*userimport.JobManager)),
	wire.Bind(new(transport.UserExportCreateProducer), new(*redisqueue.UserExportProducer)),
	wire.Bind(new(transport.UserExportGetProducer), new(*redisqueue.UserExportProducer)),
	wire.Bind(new(transport.UserExportUsageLimiter), new(*usage.Limiter)),
	wire.Bind(new(transport.UserExportCreateHandlerCloudStorage), new(userexport.UserExportCloudStorage)),
	wire.Bind(new(transport.UserExportGetHandlerCloudStorage), new(userexport.UserExportCloudStorage)),
	wire.Bind(new(transport.UserExportCreateHandlerUserExportService), new(*userexport.UserExportService)),

	adminauthz.DependencySet,
)

Functions

func AdminCSPMiddleware

func AdminCSPMiddleware(next http.Handler) http.Handler

func NewRouter

func NewRouter(p *deps.RootProvider, configSource *configsource.ConfigSource, auth config.AdminAPIAuth) http.Handler

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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