hydra

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 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
}

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"`
	ResponseTypes []string `json:"response_types,omitempty"`
	Scope         string   `json:"scope"`
	Owner         string   `json:"owner"`
}

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