auth0

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type AuthClient

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

func NewClient

func NewClient(config *Config) *AuthClient

func (*AuthClient) CreateUser

func (authClient *AuthClient) CreateUser(userRequest *UserRequest) (*User, error)

func (*AuthClient) DeleteById

func (authClient *AuthClient) DeleteById(id string) error

func (*AuthClient) GetUserById

func (authClient *AuthClient) GetUserById(id string) (*User, error)

func (*AuthClient) UpdateUserById

func (authClient *AuthClient) UpdateUserById(id string, userRequest *UserRequest) (*User, error)

type Config

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

type LoginRequest

type LoginRequest struct {
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	Audience     string `json:"audience"`
	GrantType    string `json:"grant_type"`
}

type LoginResponse

type LoginResponse struct {
	AccessToken string `json:"access_token"`
}

type User

type User struct {
	UserId        string                 `json:"user_id,omitempty"`
	Email         string                 `json:"email,omitempty"`
	Name          string                 `json:"name,omitempty"`
	UserMetaData  map[string]interface{} `json:"user_metadata,omitempty"`
	EmailVerified bool                   `json:"email_verified,omitempty"`
}

type UserRequest

type UserRequest struct {
	Connection    string                 `json:"connection,omitempty"`
	Email         string                 `json:"email,omitempty"`
	Name          string                 `json:"name,omitempty"`
	Password      string                 `json:"password,omitempty"`
	UserMetaData  map[string]interface{} `json:"user_metadata,omitempty"`
	EmailVerified bool                   `json:"email_verified,omitempty"`
}

Jump to

Keyboard shortcuts

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