oauth2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package oauth2 provides the partitioned OAuth2 identity provider used by gateway tests.

Index

Constants

View Source
const Port = 3011

Port is the container port used by the testbench.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements testbench.Service and testbench.Partitioned.

func New

func New() *Service

New returns a new partitioned OAuth2 service.

func (*Service) Handler

func (s *Service) Handler() http.Handler

Handler serves token and diagnostic endpoints.

func (*Service) Name

func (s *Service) Name() string

Name returns the service registration name.

func (*Service) PartitionKey

func (s *Service) PartitionKey() string

PartitionKey returns the partitioning strategy used by this service.

func (*Service) Port

func (s *Service) Port() int

Port returns the service port.

func (*Service) Stateful

func (s *Service) Stateful() bool

Stateful reports that the service records token requests.

Jump to

Keyboard shortcuts

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