hydra

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 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 {
	HydraURL       url.URL
	HTTPClient     *http.Client
	ForwardedProto string
}

func (*Client) DeleteOAuth2Client

func (c *Client) DeleteOAuth2Client(id string) error

func (*Client) GetOAuth2Client

func (c *Client) GetOAuth2Client(id string) (*OAuth2ClientJSON, bool, error)

func (*Client) ListOAuth2Client added in v0.0.4

func (c *Client) ListOAuth2Client() ([]*OAuth2ClientJSON, error)

func (*Client) PostOAuth2Client

func (c *Client) PostOAuth2Client(o *OAuth2ClientJSON) (*OAuth2ClientJSON, error)

func (*Client) PutOAuth2Client

func (c *Client) PutOAuth2Client(o *OAuth2ClientJSON) (*OAuth2ClientJSON, error)

type OAuth2ClientJSON

type OAuth2ClientJSON struct {
	ClientID                *string  `json:"client_id,omitempty"`
	Secret                  *string  `json:"client_secret,omitempty"`
	GrantTypes              []string `json:"grant_types"`
	RedirectURIs            []string `json:"redirect_uris,omitempty"`
	ResponseTypes           []string `json:"response_types,omitempty"`
	Audience                []string `json:"audience,omitempty"`
	Scope                   string   `json:"scope"`
	Owner                   string   `json:"owner"`
	TokenEndpointAuthMethod string   `json:"token_endpoint_auth_method,omitempty"`
}

OAuth2ClientJSON represents an OAuth2 client digestible by ORY Hydra

func (*OAuth2ClientJSON) WithCredentials added in v0.0.4

func (oj *OAuth2ClientJSON) WithCredentials(credentials *Oauth2ClientCredentials) *OAuth2ClientJSON

type Oauth2ClientCredentials added in v0.0.4

type Oauth2ClientCredentials struct {
	ID       []byte
	Password []byte
}

Oauth2ClientCredentials represents client ID and password fetched from a Kubernetes secret

Jump to

Keyboard shortcuts

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