auth

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() interface{}

New returns a new plugin instance nolint

Types

type Association

type Association struct {
	Name         string `json:"name"`
	SerialNumber string `json:"serialNumber"`
	ModelNumber  string `json:"modelNumber"`
}

type Config

type Config struct {
	Region            string `json:"region"`
	Environment       string `json:"environment"`
	MTLSHeader        string `json:"mtls_header"`
	SerialHeader      string `json:"serial_header"`
	GetDeviceEndpoint string `json:"get_device_endpoint"`
	DeviceTokenURL    string `json:"device_token_url"`
	// contains filtered or unexported fields
}

Config holds the configuration of the plugin

func (*Config) Access

func (conf *Config) Access(kong *pdk.PDK)

Access implements the Access step

type Data added in v0.7.0

type Data struct {
	ServerCert               string            `json:"server_cert"`
	ServerKey                string            `json:"server_key"`
	ServiceSSHPrivateKey     string            `json:"server_ssh_private_key"`
	TrustedCACert            string            `json:"trusted_ca_cert"`
	EnableGlobalRateLimiting bool              `json:"enable_global_rate_limiting"`
	HSPLogdrainURL           string            `json:"hsp_logdrain_url"`
	CaddyServerUsername      string            `json:"caddy_server_username"`
	CaddyServiceBastionHost  string            `json:"caddy_server_bastion_host"`
	CaddyServerPrivateHosts  []string          `json:"caddy_server_private_hosts"`
	EndpointMappings         map[string]string `json:"endpoint_mappings"`
	MTLSAuthSharedKey        string            `json:"mtlsauth_shared_key"`
	MTLSAuthSecretKey        string            `json:"mtlsauth_secret_key"`
}

type Device

type Device struct {
	ID           string        `json:"id"`
	Name         string        `json:"name"`
	PracticeID   string        `json:"practiceId"`
	LoginID      string        `json:"loginId"`
	Password     string        `json:"password"`
	ClientID     string        `json:"clientId"`
	ClientSecret string        `json:"clientSecret"`
	CN           string        `json:"cn"`
	Associations []Association `json:"associations"`
}

type GetResponse

type GetResponse struct {
	Entry       []Device `json:"entry"`
	TotalResult int      `json:"totalResult"`
}

Jump to

Keyboard shortcuts

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