Documentation
¶
Index ¶
- Variables
- func HookAtUserCreation(app *pocketbase.PocketBase)
- func HookAtUserLogin(app *pocketbase.PocketBase)
- func HookRefuseAPIKeyOAuth2Linking(app core.App)
- func HookTurnstileVerification(app *pocketbase.PocketBase)
- func IsSuperUser(app core.App, user *core.Record) bool
- func RegisterMyRoutes(app core.App)
- type UnitTestSuite
Constants ¶
This section is empty.
Variables ¶
View Source
var RouteGroups []routing.RouteGroup = []routing.RouteGroup{ handlers.WorkflowsRoutes, handlers.ApiKeyRoutes, handlers.SchedulesRoutes, handlers.CustomIntegrationsRoutes, handlers.MobileRunnersPublicRoutes, handlers.MobileDevicesPublicRoutes, handlers.ActionAuthorRoutes, }
View Source
var RouteGroupsNotExported []routing.RouteGroup = []routing.RouteGroup{ handlers.ConformanceRoutes, handlers.TemplateRoutes, handlers.IssuersRoutes, handlers.WalletRoutes, handlers.WalletInternalRoutes, handlers.DeepLinkRoutes, handlers.WorkflowListingRoutes, handlers.PipelineRoutes, handlers.PipelineInternalRoutes, handlers.CanonifyRoutes, handlers.ConformanceCheckRoutes, handlers.OrganizationRoutes, handlers.OrganizationInternalRoutes, handlers.CloneRecord, handlers.MobileRunnerRegistrationRoutes, handlers.MobileDeviceRegistrationRoutes, handlers.MobileRunnerLifecycleRoutes, handlers.MobileRunnerDashboardSignInRoutes, handlers.WebPushRoutes, handlers.ConformanceCatalogRoutes, handlers.ConformanceChecksRecordsRoutes, handlers.ConformanceSuitesRecordsRoutes, }
Functions ¶
func HookAtUserCreation ¶
func HookAtUserCreation(app *pocketbase.PocketBase)
func HookAtUserLogin ¶
func HookAtUserLogin(app *pocketbase.PocketBase)
func HookRefuseAPIKeyOAuth2Linking ¶ added in v1.331.0
HookRefuseAPIKeyOAuth2Linking refuses auth-with-oauth2 on every auth collection when the request's Authorization token was exchanged for an API key (handlers.RequestHasAPIKeyToken): PocketBase links the provider account to the signed-in record and returns a fresh token without the api_key claim, which would launder a leaked key into a browser session.
func HookTurnstileVerification ¶
func HookTurnstileVerification(app *pocketbase.PocketBase)
HookTurnstileVerification validates Cloudflare Turnstile tokens on user registration and login. It reads the token from the X-Turnstile-Token HTTP header and verifies it with Cloudflare.
func RegisterMyRoutes ¶
Types ¶
type UnitTestSuite ¶
type UnitTestSuite struct {
suite.Suite
testsuite.WorkflowTestSuite
// contains filtered or unexported fields
}
func (*UnitTestSuite) SetupTest ¶
func (s *UnitTestSuite) SetupTest()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.