hydra

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 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 decorates the default hydra admin client with TLS configuration.

func NewClient

func NewClient(hydraURL *url.URL, rootCAs *x509.CertPool) *Client

NewClient returns a new Client.

func (*Client) AcceptConsentRequest

func (c *Client) AcceptConsentRequest(params *admin.AcceptConsentRequestParams,
	_ ...admin.ClientOption) (*admin.AcceptConsentRequestOK, error)

AcceptConsentRequest accepts the consent request at hydra.

func (*Client) AcceptLoginRequest

func (c *Client) AcceptLoginRequest(params *admin.AcceptLoginRequestParams,
	_ ...admin.ClientOption) (*admin.AcceptLoginRequestOK, error)

AcceptLoginRequest accepts the login request at hydra.

func (*Client) CreateOAuth2Client

CreateOAuth2Client creates an oauth2 client at hydra.

func (*Client) GetConsentRequest

func (c *Client) GetConsentRequest(params *admin.GetConsentRequestParams,
	_ ...admin.ClientOption) (*admin.GetConsentRequestOK, error)

GetConsentRequest fetches the consent request at hydra.

func (*Client) GetLoginRequest

func (c *Client) GetLoginRequest(params *admin.GetLoginRequestParams,
	_ ...admin.ClientOption) (*admin.GetLoginRequestOK, error)

GetLoginRequest fetches the login request at hydra.

func (*Client) IntrospectOAuth2Token

func (c *Client) IntrospectOAuth2Token(params *admin.IntrospectOAuth2TokenParams,
	_ ...admin.ClientOption) (*admin.IntrospectOAuth2TokenOK, error)

IntrospectOAuth2Token and return the introspection.

Jump to

Keyboard shortcuts

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