scim

package
v0.0.0-...-a8d7ca2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidToken is returned when the request token is invalid.
	ErrInvalidToken = errors.New("invalid or missing token")
)

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func WithConfig

func WithConfig(v config.Scim) Option

WithConfig provides a function to set the config option.

func WithRoot

func WithRoot(v string) Option

WithRoot provides a function to set the root option.

func WithStore

func WithStore(v *gorm.DB) Option

WithStore provides a function to set the store option.

type Options

type Options struct {
	Root   string
	Config config.Scim
	Store  *gorm.DB
}

Options defines the available options for this package.

type Scim

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

Scim defines the handlers for the SCIM v2 server.

func New

func New(opts ...Option) *Scim

New initializes the SCIM v2 server handlers.

func (*Scim) Server

func (s *Scim) Server() (http.HandlerFunc, error)

Server returns the server which can be mounted into an existing mux.

Jump to

Keyboard shortcuts

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