app2app

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const RequestTokenType = "vnd.authgear.app2app-request"

nolint:gosec

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(Provider), "*"),
)
View Source
var KeyIDFormat = regexp.MustCompile(`^[-\w]{8,64}$`)

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Clock clock.Clock
}

func (*Provider) ParseToken

func (p *Provider) ParseToken(requestJWT string, key jwk.Key) (*Request, error)

func (*Provider) ParseTokenUnverified

func (p *Provider) ParseTokenUnverified(requestJWT string) (t *Request, err error)

type Request

type Request struct {
	Key       jwk.Key `json:"-"`
	Challenge string  `json:"challenge"`
}

Jump to

Keyboard shortcuts

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