paths

package
v0.6.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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IDPBasePath = "/authn" // TODO change this

	// TODO: finish converting IDP path handling to use these
	CreateUser     = fmt.Sprintf("%s/users", IDPBasePath)
	AddAuthnToUser = fmt.Sprintf("%s/addauthntouser", IDPBasePath)

	UserStoreBasePath = "/userstore"

	BaseConfigPath = fmt.Sprintf("%s/config", UserStoreBasePath)

	BaseConfigColumnsPath = fmt.Sprintf("%s/columns", BaseConfigPath)

	CreateColumnPath = BaseConfigColumnsPath
	DeleteColumnPath = singleConfigColumnPath
	GetColumnPath    = singleConfigColumnPath
	ListColumnsPath  = BaseConfigColumnsPath
	UpdateColumnPath = singleConfigColumnPath

	BaseConfigAccessorPath = fmt.Sprintf("%s/accessors", BaseConfigPath)

	CreateAccessorPath       = BaseConfigAccessorPath
	DeleteAccessorPath       = singleConfigAccessorPath
	GetAccessorPath          = singleConfigAccessorPath
	GetAccessorByVersionPath = versionedSingleConfigAccessorPath
	ListAccessorsPath        = BaseConfigAccessorPath
	UpdateAccessorPath       = singleConfigAccessorPath

	BaseAccessorPath    = fmt.Sprintf("%s/accessors", BaseAPIPath)
	ExecuteAccessorPath = BaseAccessorPath

	BaseConfigMutatorPath = fmt.Sprintf("%s/mutators", BaseConfigPath)

	CreateMutatorPath       = BaseConfigMutatorPath
	DeleteMutatorPath       = singleConfigMutatorPath
	GetMutatorPath          = singleConfigMutatorPath
	GetMutatorByVersionPath = versionedSingleConfigMutatorPath
	ListMutatorsPath        = BaseConfigMutatorPath
	UpdateMutatorPath       = singleConfigMutatorPath

	BaseMutatorPath    = fmt.Sprintf("%s/mutators", BaseAPIPath)
	ExecuteMutatorPath = BaseMutatorPath

	BaseAPIPath = fmt.Sprintf("%s/api", UserStoreBasePath)
)

Path constants for the userstore

Functions

func GetReferenceURLForAccessor added in v0.4.0

func GetReferenceURLForAccessor(id uuid.UUID, v int) string

GetReferenceURLForAccessor return URL pointing at a particular access policy object

func GetReferenceURLForMutator added in v0.4.0

func GetReferenceURLForMutator(id uuid.UUID, v int) string

GetReferenceURLForMutator return URL pointing at a particular transformation policy object

func StripBase

func StripBase(path string) string

StripBase makes the URLs functional for handler setup

Types

This section is empty.

Jump to

Keyboard shortcuts

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