idtoken

package
v0.0.0-...-359c0b8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDebugGoproxy

func WithDebugGoproxy(b bool) debugGoproxyOption

func WithDefaultAudience

func WithDefaultAudience(audience string) defaultAudienceOption

func WithTokenSourceCacheDuration

func WithTokenSourceCacheDuration(dur string) tsCacheDurationOption

Types

type Option

type Option interface {
	Apply(s *server) error
}

type Response

type Response struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
}

type Server

type Server interface {
	health.Health
	http.Handler
	Start(ctx context.Context) <-chan error
	Stop() error
}

func New

func New(opts ...Option) (Server, error)

Jump to

Keyboard shortcuts

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