Documentation ¶
Index ¶
- Constants
- Variables
- func AddScimUser(r *scim.Resource) error
- func GetScimServer() scim.Server
- func GetScimUser(id string) (*scim.Resource, error)
- func ToString(v interface{}, defaultV ...interface{}) string
- func UpdateScimUser(id string, r *scim.Resource) error
- func UpdateScimUserByPatchOperation(id string, ops []scim.PatchOperation) (r scim.Resource, err error)
- type AnyArray
- type AnyMap
- type UserResourceHandler
- func (h UserResourceHandler) Create(r *http.Request, attrs scim.ResourceAttributes) (scim.Resource, error)
- func (h UserResourceHandler) Delete(r *http.Request, id string) error
- func (h UserResourceHandler) Get(r *http.Request, id string) (scim.Resource, error)
- func (h UserResourceHandler) GetAll(r *http.Request, params scim.ListRequestParams) (scim.Page, error)
- func (h UserResourceHandler) Patch(r *http.Request, id string, operations []scim.PatchOperation) (scim.Resource, error)
- func (h UserResourceHandler) Replace(r *http.Request, id string, attrs scim.ResourceAttributes) (scim.Resource, error)
Constants ¶
View Source
const (
UserExtensionKey = "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
)
Variables ¶
View Source
var ( UserStringField = []schema.SimpleParams{ newStringParams("externalId", false, true), newStringParams("userName", true, true), newStringParams("password", false, false), newStringParams("displayName", false, false), newStringParams("profileUrl", false, false), newStringParams("userType", false, false), } UserComplexField = []schema.ComplexParams{ newComplexParams("name", false, false, []schema.SimpleParams{ newStringParams("givenName", false, false), newStringParams("familyName", false, false), }), newComplexParams("emails", false, true, []schema.SimpleParams{ newStringParams("value", true, false), }), newComplexParams("phoneNumbers", false, true, []schema.SimpleParams{ newStringParams("value", true, false), }), newComplexParams("photos", false, true, []schema.SimpleParams{ newStringParams("value", true, false), }), newComplexParams("addresses", false, true, []schema.SimpleParams{ newStringParams("locality", false, false), newStringParams("region", false, false), newStringParams("country", false, false), }), } Server = GetScimServer() )
Functions ¶
func AddScimUser ¶
func GetScimServer ¶
func UpdateScimUserByPatchOperation ¶
func UpdateScimUserByPatchOperation(id string, ops []scim.PatchOperation) (r scim.Resource, err error)
https://datatracker.ietf.org/doc/html/rfc7644#section-3.5.2 Modifying with PATCH
Types ¶
type AnyArray ¶
type AnyArray []interface{}
func ToAnyArray ¶
func ToAnyArray(v interface{}, defaultV ...interface{}) AnyArray
type UserResourceHandler ¶
type UserResourceHandler struct{}
func (UserResourceHandler) Create ¶
func (h UserResourceHandler) Create(r *http.Request, attrs scim.ResourceAttributes) (scim.Resource, error)
func (UserResourceHandler) Delete ¶
func (h UserResourceHandler) Delete(r *http.Request, id string) error
func (UserResourceHandler) GetAll ¶
func (h UserResourceHandler) GetAll(r *http.Request, params scim.ListRequestParams) (scim.Page, error)
Click to show internal directories.
Click to hide internal directories.