devinit

package
v0.0.0-...-b9b5e9f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootDir              string
	CredsDir             string
	CertsDir             string
	HydraCredsDir        string
	IDPDir               string
	CoreDir              string
	CoreAppFrontendDir   string
	CoreAdminFrontendDir string
	CoreFormsApiDir      string
	CoreAuthnzApiDir     string
	CoreAuthnzBouncerDir string
	LoginDir             string
	RedisDir             string
	PostgresDir          string
	OIDCDir              string
	ProxyDir             string
)
View Source
var (
	AdminURI      = "http://localhost:3001/app"
	AdminScope    = "openid email profile"
	PwaURI        = "http://localhost:3000/app"
	CoreLocalHost = "https://localhost:8443"

	WorkDir = ""

	// OidcIssuer is the oidc issuer of the fake-oidc-provider
	// This is initialized by the init() method
	OidcIssuer = ""

	// CoreHost is the core hostname
	// This is initialized by the init() method
	CoreHost = ""

	// HydraHost is the hydra hostname
	// This is initialized by the init() method
	HydraHost = ""
)

Functions

func Bootstrap

func Bootstrap() error

func Init

func Init() error

func StartTunnels

func StartTunnels() error

Types

type ClientConfig

type ClientConfig struct {
	ClientId                string   `json:"client_id"`
	RedirectUris            []string `json:"redirect_uris"`
	GrantTypes              []string `json:"grant_types"`
	TokenEndpointAuthMethod string   `json:"token_endpoint_auth_method"`
	Scope                   string   `json:"scope"`
	ResponseTypes           []string `json:"response_types"`
	ClientSecret            string   `json:"client_secret,omitempty"`
}

type Config

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

type HydraClients

type HydraClients struct {
	Clients []ClientConfig `json:"clients"`
}

type OidcConfig

type OidcConfig struct {
	Scopes  []string       `json:"scopes"`
	Clients []ClientConfig `json:"clients"`
}

Jump to

Keyboard shortcuts

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