oauthstate

package
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(ctx context.Context, client *redis.Client, key string) (string, error)

Consume atomically returns and deletes an OAuth state value. The Lua implementation keeps compatibility with Redis versions older than 6.2.

func ValidateRedirect added in v1.15.12

func ValidateRedirect(redirect, siteHost string) error

ValidateRedirect checks a client-supplied OAuth redirect target before it is stored as state and later used as a browser redirect. The scheme must be web-safe, and when the administrator configured a site host the redirect must stay on that host or one of its subdomains; an empty site host disables the host pin so existing deployments keep working.

Types

This section is empty.

Jump to

Keyboard shortcuts

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