testing

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testing holds what tests of the OAuth authorization server share: the behaviour every store must have, as a test any of them can be run through.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreContract

func StoreContract(t *testing.T, store oauth.Store, accountId string)

StoreContract runs the store through what the authorization server relies on: requests and codes are had once, a refresh token is spent once, and a spent one coming back revokes its grant. accountId is an account the store knows and that is active. The cases run in parallel with one another, as the endpoints use the store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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