apis

package
v1.334.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func HookAtUserCreation

func HookAtUserCreation(app *pocketbase.PocketBase)

func HookAtUserLogin

func HookAtUserLogin(app *pocketbase.PocketBase)

func HookRefuseAPIKeyOAuth2Linking added in v1.331.0

func HookRefuseAPIKeyOAuth2Linking(app core.App)

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 IsSuperUser

func IsSuperUser(app core.App, user *core.Record) bool

func RegisterMyRoutes

func RegisterMyRoutes(app core.App)

Types

type UnitTestSuite

type UnitTestSuite struct {
	suite.Suite
	testsuite.WorkflowTestSuite
	// contains filtered or unexported fields
}

func (*UnitTestSuite) SetupTest

func (s *UnitTestSuite) SetupTest()

Directories

Path Synopsis
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-FileCopyrightText: 2025 Forkbomb BV

Jump to

Keyboard shortcuts

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