app2app

package
v0.0.0-...-2bc625b Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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