auth0

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform

func Transform(in *management.User) (*api.User, error)

Transform Auth0 user definition into Aserto Edge User object definition.

Types

type Config

type Config struct {
	Domain       string `mapstructure:"domain"`
	ClientID     string `mapstructure:"client_id"`
	ClientSecret string `mapstructure:"client_secret"`
}

Config -.

func FromEnv

func FromEnv() (*Config, error)

FromEnv - create config instance from environment variables.

func FromProfile

func FromProfile(profile string) (*Config, error)

func (*Config) Validate

func (a *Config) Validate() error

type Producer

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

Producer api.User producer.

func NewProducer

func NewProducer(cfg *Config) *Producer

NewProducer returns Auth0 producer instance.

func (*Producer) Count

func (p *Producer) Count() int

func (*Producer) Producer

func (p *Producer) Producer(s chan<- *api.User, errc chan<- error)

Producer func.

Jump to

Keyboard shortcuts

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