rs

package
v0.1.9-0...-e279f7d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a GNAP client for creating and verify GNAP requests.

func NewClient

func NewClient(signer gnap.Signer, httpClient *http.Client, gnapResourceServerURL string) (*Client, error)

NewClient creates a new GNAP introspection client. It requires a signer for HTTP Signature header, an HTTP client and a base URL of the resource server.

func (*Client) Introspect

func (c *Client) Introspect(req *gnap.IntrospectRequest) (*gnap.IntrospectResponse, error)

Introspect verifies a GNAP auth grant request.

Jump to

Keyboard shortcuts

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