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.
Click to show internal directories.
Click to hide internal directories.