scimstatic

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package scimstatic implements an identity management plugin that serves users and groups from a static, SCIM-shaped JSON document given in the plugin configuration instead of querying a remote SCIM server.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrID                     = oops.In("Identity management Plugin")
	ErrNotConfigured          = errors.New("static data not configured")
	ErrNoID                   = errors.New("no id provided")
	ErrGetGroup               = errors.New("failed to get group")
	ErrGetGroupMultipleGroups = errors.New("more than one group")
	ErrGetUsersForGroup       = errors.New("failed to get users for group")
	ErrGetGroupsForUser       = errors.New("failed to get groups for user")
	ErrInvalidData            = errors.New("invalid static data")
	ErrDuplicateID            = errors.New("duplicate id")
)

Functions

This section is empty.

Types

type Data

type Data struct {
	Users  []scim.User  `json:"users"`
	Groups []scim.Group `json:"groups"`
}

Data is the static JSON document served by the plugin.

type Plugin

type Plugin struct {
	idmangv1.UnsafeIdentityManagementServiceServer
	configv1.UnsafeConfigServer
	// contains filtered or unexported fields
}

Plugin is an IdentityManagementService backed by static data.

func NewPlugin

func NewPlugin(buildInfo string) *Plugin

func (*Plugin) Configure

func (*Plugin) GetAllGroups

func (*Plugin) GetGroup

func (p *Plugin) GetGroup(
	_ context.Context,
	request *idmangv1.GetGroupRequest,
) (*idmangv1.GetGroupResponse, error)

func (*Plugin) GetGroupsForUser

func (*Plugin) GetUser

func (p *Plugin) GetUser(
	_ context.Context,
	request *idmangv1.GetUserRequest,
) (*idmangv1.GetUserResponse, error)

func (*Plugin) GetUsersForGroup

func (*Plugin) SetLogger

func (p *Plugin) SetLogger(logger hclog.Logger)

Jump to

Keyboard shortcuts

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