pdp

package module
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: EUPL-1.2 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the zero-pdp release version. It defaults to "dev" and is overridden at build time via -ldflags "-X github.com/gematik/zero-lab/go/pdp.Version=<v>".

Functions

func LoadOpenidProviders added in v0.22.0

func LoadOpenidProviders(path string) ([]oidc.Config, []gemidp.ClientConfig, *oidf.RelyingPartyConfig, error)

LoadOpenidProviders reads the flat openid-providers.yaml. ${VAR} placeholders expand from the environment. Relative paths inside the OIDF config resolve against the file's directory (set by the caller via OidfRelyingPartyConfig.BaseDir).

func ResolveVersion

func ResolveVersion() string

ResolveVersion returns the ldflags-injected Version when set, otherwise the module version embedded by `go install …@vX.Y.Z` (read from the build info).

Types

type Config

type Config struct {
	BindAddress       string             `yaml:"bind_address"`
	BaseDir           string             `yaml:"-"`
	AuthzServerConfig authzserver.Config `yaml:"authorization_server" validate:"required"`
}

func LoadConfigFile

func LoadConfigFile(path string) (*Config, error)

type PDP

type PDP struct {
	BindAddress string
	AuthzServer *authzserver.Server
}

func New

func New(config Config) (*PDP, error)

Directories

Path Synopsis
cmd
zero-pdp command
Package e2e holds developer-run, environment-guarded end-to-end tests for the zero-pdp authorization server.
Package e2e holds developer-run, environment-guarded end-to-end tests for the zero-pdp authorization server.

Jump to

Keyboard shortcuts

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