config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package config defines configurations for the auth server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAuthManager

func InitAuthManager(
	ctx context.Context,
	configPath string,
	exporters *gotel.OTelExporters,
) (*auth.RelyAuthManager, error)

InitAuthManager initializes the auth manager from config.

Types

type RelyAuthServerConfig

type RelyAuthServerConfig struct {
	// Server configs.
	Server gohttps.ServerConfig `json:"server" yaml:"server"`
	// Telemetry configs.
	Telemetry gotel.OTLPConfig `json:"telemetry" yaml:"telemetry"`
	// Path of the auth config file.
	ConfigPath string `json:"configPath" yaml:"configPath" env:"RELY_AUTH_CONFIG_PATH"`
}

RelyAuthServerConfig holds information of required configurations to run the auth server.

func LoadServerConfig

func LoadServerConfig() (*RelyAuthServerConfig, error)

LoadServerConfig loads and parses configurations for RelyAuthServerConfig.

func (RelyAuthServerConfig) GetConfigPath

func (rlsc RelyAuthServerConfig) GetConfigPath() string

GetConfigPath returns the auth config path.

Jump to

Keyboard shortcuts

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