scim

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Value   string `json:"value,omitempty"`
	Type    string `json:"type,omitempty"`
	Primary bool   `json:"primary,omitempty"`
}

Item is a SCIM struct used for email and phone numbers.

type Name

type Name struct {
	Formatted       string `json:"formatted,omitempty"`
	FamilyName      string `json:"familyName,omitempty"`
	GivenName       string `json:"givenName,omitempty"`
	MiddleName      string `json:"middleName,omitempty"`
	HonorificPrefix string `json:"honorificPrefix,omitempty"`
	HonorificSuffix string `json:"honorificSuffix,omitempty"`
}

Name is the SCIM user name struct.

type User

type User struct {
	Schemas           []string `json:"schemas,omitempty"`
	ExternalId        string   `json:"externalId,omitempty"`
	UserName          string   `json:"userName,omitempty"`
	Name              Name     `json:"name,omitempty"`
	DisplayName       string   `json:"displayName,omitempty"`
	NickName          string   `json:"nickName,omitempty"`
	ProfileUrl        string   `json:"profileUrl,omitempty"`
	PhoneNumbers      []Item   `json:"phoneNumbers,omitempty"`
	Emails            []Item   `json:"emails,omitempty"`
	UserType          string   `json:"userType,omitempty"`
	Title             string   `json:"title,omitempty"`
	PreferredLanguage string   `json:"preferredLanguage,omitempty"`
	Locale            string   `json:"locale,omitempty"`
	Timezone          string   `json:"timezone,omitempty"`
	Active            bool     `json:"active,omitempty"`
	Password          string   `json:"password,omitempty"`
}

User is an object from the full user representation specified in the SCIM schema: http://www.simplecloud.info/specs/draft-scim-core-schema-01.html#anchor7

func (*User) AddEmail

func (user *User) AddEmail(emailAddr string, isPrimary bool) error

AddEmail adds a canonical email address to the user. it lowercases and trims preceding and trailing spaces from the email address.

Jump to

Keyboard shortcuts

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