auth0

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationInterface

type AuthenticationInterface interface {
	ClientCredentials(token *authentication.Token) (*authentication.Token, error)
}

type Config

type Config struct {
	Host   string
	Prefix string

	// Server required Basic authentication
	UserName string
	Password string

	// Server requires Bearer authentication.
	BearerToken string

	// The maximum length of time to wait before giving up on a server request. A value of zero means no timeout.
	Timeout time.Duration

	// Set specific behavior of the client.  If not set http.DefaultClient will be used.
	Client request.HTTPClient
}

type CoreClient

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

func (*CoreClient) Authentication

func (c *CoreClient) Authentication() AuthenticationInterface

func (*CoreClient) Management

func (c *CoreClient) Management(accessToken string) ManagementInterface

Management represents the management api from auth0 https://auth0.com/docs/api/management/v2

func (*CoreClient) RESTClient

func (c *CoreClient) RESTClient() request.Interface

type CoreInterface

type CoreInterface interface {
	RESTClient() request.Interface

	Authentication() AuthenticationInterface
	Management(accessToken string) ManagementInterface
}

func NewForConfig

func NewForConfig(c *Config) (CoreInterface, error)

type ManagementInterface

type ManagementInterface interface {
	Users() UserInterface
}

type UserInterface

type UserInterface interface {
	Get(id string) (*authentication.User, error)
}

Jump to

Keyboard shortcuts

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