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