Remove obsolete SCIM assets
This commit is contained in:
parent
5e9545e9ab
commit
ef0ea6130c
@ -1,11 +0,0 @@
|
||||
.PHONY: clean all
|
||||
|
||||
include ../../Makefile.inc
|
||||
|
||||
all: static.go
|
||||
|
||||
static.go: $(STATIK)
|
||||
$(STATIK) -p assets -m -Z -f -src=$(@D)/assets
|
||||
|
||||
clean:
|
||||
rm -f static.go
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"id": "Group",
|
||||
"name": "Group",
|
||||
"endpoint": "/Groups",
|
||||
"schema": "urn:ietf:params:scim:schemas:core:2.0:Group"
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
{
|
||||
"id": "User",
|
||||
"name": "User",
|
||||
"endpoint": "/Users",
|
||||
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
|
||||
"schemaExtensions": [
|
||||
{
|
||||
"schema": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
|
||||
"required": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,128 +0,0 @@
|
||||
{
|
||||
"id": "core",
|
||||
"name": "Core",
|
||||
"description": "Shared attributes for all SCIM resources",
|
||||
"attributes": [
|
||||
{
|
||||
"id": "schemas",
|
||||
"name": "schemas",
|
||||
"type": "reference",
|
||||
"multiValued": true,
|
||||
"required": true,
|
||||
"caseExact": true,
|
||||
"returned": "always",
|
||||
"_index": 0,
|
||||
"_path": "schemas",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "id",
|
||||
"name": "id",
|
||||
"type": "string",
|
||||
"caseExact": true,
|
||||
"returned": "always",
|
||||
"mutability": "readOnly",
|
||||
"uniqueness": "global",
|
||||
"_index": 1,
|
||||
"_path": "id",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
},
|
||||
"@UUID": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "externalId",
|
||||
"name": "externalId",
|
||||
"type": "string",
|
||||
"_index": 2,
|
||||
"_path": "externalId"
|
||||
},
|
||||
{
|
||||
"id": "meta",
|
||||
"name": "meta",
|
||||
"type": "complex",
|
||||
"mutability": "readOnly",
|
||||
"_index": 3,
|
||||
"_path": "meta",
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "meta.resourceType",
|
||||
"name": "resourceType",
|
||||
"type": "string",
|
||||
"caseExact": true,
|
||||
"mutability": "readOnly",
|
||||
"_index": 0,
|
||||
"_path": "meta.resourceType",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "meta.created",
|
||||
"name": "created",
|
||||
"type": "dateTime",
|
||||
"mutability": "readOnly",
|
||||
"_index": 1,
|
||||
"_path": "meta.created",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "meta.lastModified",
|
||||
"name": "lastModified",
|
||||
"type": "dateTime",
|
||||
"mutability": "readOnly",
|
||||
"_index": 2,
|
||||
"_path": "meta.lastModified",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "meta.location",
|
||||
"name": "location",
|
||||
"type": "reference",
|
||||
"mutability": "readOnly",
|
||||
"caseExact": true,
|
||||
"_index": 3,
|
||||
"_path": "meta.location",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "meta.version",
|
||||
"name": "version",
|
||||
"type": "string",
|
||||
"mutability": "readOnly",
|
||||
"_index": 4,
|
||||
"_path": "meta.version",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,56 +0,0 @@
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:Group",
|
||||
"name": "Group",
|
||||
"description": "Defined attributes for the group schema",
|
||||
"attributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:Group:displayName",
|
||||
"name": "displayName",
|
||||
"type": "string",
|
||||
"_index": 100,
|
||||
"_path": "displayName"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:Group:members",
|
||||
"name": "members",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:Group:members.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"mutability": "immutable",
|
||||
"_index": 0,
|
||||
"_path": "members.value",
|
||||
"_annotations":{
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:Group:members.$ref",
|
||||
"name": "$ref",
|
||||
"type": "reference",
|
||||
"mutability": "immutable",
|
||||
"_index": 1,
|
||||
"_path": "members.$ref"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:Group:members.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 2,
|
||||
"_path": "members.display"
|
||||
}
|
||||
],
|
||||
"_index": 101,
|
||||
"_path": "members",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,75 +0,0 @@
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
|
||||
"name": "Enterprise User",
|
||||
"description": "Extension attributes for enterprises",
|
||||
"attributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber",
|
||||
"name": "employeeNumber",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:costCenter",
|
||||
"name": "costCenter",
|
||||
"type": "string",
|
||||
"_index": 1,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:costCenter"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:organization",
|
||||
"name": "organization",
|
||||
"type": "string",
|
||||
"_index": 2,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:organization"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division",
|
||||
"name": "division",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:department",
|
||||
"name": "department",
|
||||
"type": "string",
|
||||
"_index": 4,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:department"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager",
|
||||
"name": "manager",
|
||||
"type": "complex",
|
||||
"_index": 5,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager",
|
||||
"_annotations": {
|
||||
"@StateSummary": {}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.value"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.$ref",
|
||||
"name": "$ref",
|
||||
"type": "reference",
|
||||
"_index": 1,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.$ref"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.displayName",
|
||||
"name": "displayName",
|
||||
"type": "string",
|
||||
"_index": 2,
|
||||
"_path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.displayName"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,738 +0,0 @@
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User",
|
||||
"name": "User",
|
||||
"description": "Defined attributes for the user schema",
|
||||
"attributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:userName",
|
||||
"name": "userName",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"uniqueness": "server",
|
||||
"_index": 100,
|
||||
"_path": "userName"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name",
|
||||
"name": "name",
|
||||
"type": "complex",
|
||||
"_index": 101,
|
||||
"_path": "name",
|
||||
"_annotations": {
|
||||
"@StateSummary": {}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name.formatted",
|
||||
"name": "formatted",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "name.formatted",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name.familyName",
|
||||
"name": "familyName",
|
||||
"type": "string",
|
||||
"_index": 1,
|
||||
"_path": "name.familyName",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name.givenName",
|
||||
"name": "givenName",
|
||||
"type": "string",
|
||||
"_index": 2,
|
||||
"_path": "name.givenName",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name.middleName",
|
||||
"name": "middleName",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "name.middleName",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name.honorificPrefix",
|
||||
"name": "honorificPrefix",
|
||||
"type": "string",
|
||||
"_index": 4,
|
||||
"_path": "name.honorificPrefix",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:name.honorificSuffix",
|
||||
"name": "honorificSuffix",
|
||||
"type": "string",
|
||||
"_index": 5,
|
||||
"_path": "name.honorificSuffix",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:displayName",
|
||||
"name": "displayName",
|
||||
"type": "string",
|
||||
"_index": 102,
|
||||
"_path": "displayName"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:nickName",
|
||||
"name": "nickName",
|
||||
"type": "string",
|
||||
"_index": 103,
|
||||
"_path": "nickName"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:profileUrl",
|
||||
"name": "profileUrl",
|
||||
"type": "reference",
|
||||
"referenceTypes": [
|
||||
"external"
|
||||
],
|
||||
"_index": 104,
|
||||
"_path": "profileUrl"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:title",
|
||||
"name": "title",
|
||||
"type": "string",
|
||||
"_index": 105,
|
||||
"_path": "title"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:userType",
|
||||
"name": "userType",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"Employee",
|
||||
"Intern"
|
||||
],
|
||||
"_index": 106,
|
||||
"_path": "userType"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:preferredLanguage",
|
||||
"name": "preferredLanguage",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"zh_CN",
|
||||
"en_US"
|
||||
],
|
||||
"_index": 107,
|
||||
"_path": "preferredLanguage"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:locale",
|
||||
"name": "locale",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"en_US",
|
||||
"zh_CN"
|
||||
],
|
||||
"_index": 108,
|
||||
"_path": "locale"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:timezone",
|
||||
"name": "timezone",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"Asia/Shanghai",
|
||||
"Asia/Beijing",
|
||||
"America/New_York",
|
||||
"America/Toronto"
|
||||
],
|
||||
"_index": 109,
|
||||
"_path": "timezone"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:active",
|
||||
"name": "active",
|
||||
"type": "boolean",
|
||||
"_index": 110,
|
||||
"_path": "active"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:password",
|
||||
"name": "password",
|
||||
"type": "string",
|
||||
"mutability": "writeOnly",
|
||||
"returned": "never",
|
||||
"_index": 111,
|
||||
"_path": "password",
|
||||
"_annotations": {
|
||||
"@BCrypt": {
|
||||
"cost": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:emails",
|
||||
"name": "emails",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"required": true,
|
||||
"_index": 112,
|
||||
"_path": "emails",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:emails.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "emails.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:emails.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"work",
|
||||
"home",
|
||||
"other"
|
||||
],
|
||||
"_index": 1,
|
||||
"_path": "emails.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:emails.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 2,
|
||||
"_path": "emails.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:emails.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "emails.display"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers",
|
||||
"name": "phoneNumbers",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 113,
|
||||
"_path": "phoneNumbers",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "phoneNumbers.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"work",
|
||||
"home",
|
||||
"mobile",
|
||||
"fax",
|
||||
"other"
|
||||
],
|
||||
"_index": 1,
|
||||
"_path": "phoneNumbers.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 2,
|
||||
"_path": "phoneNumbers.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:phoneNumbers.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "phoneNumbers.display"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:ims",
|
||||
"name": "ims",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 114,
|
||||
"_path": "ims",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:ims.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "ims.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:ims.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"skype",
|
||||
"qq",
|
||||
"wechat",
|
||||
"weibo",
|
||||
"other"
|
||||
],
|
||||
"_index": 1,
|
||||
"_path": "ims.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:ims.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 2,
|
||||
"_path": "ims.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:ims.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "ims.display"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:photos",
|
||||
"name": "photos",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 115,
|
||||
"_path": "photos",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:photos.value",
|
||||
"name": "value",
|
||||
"type": "reference",
|
||||
"referenceTypes": [
|
||||
"external"
|
||||
],
|
||||
"_index": 0,
|
||||
"_path": "photos.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:photos.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"photo",
|
||||
"thumbnail"
|
||||
],
|
||||
"_index": 1,
|
||||
"_path": "photos.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:photos.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 2,
|
||||
"_path": "photos.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses",
|
||||
"name": "addresses",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 116,
|
||||
"_path": "addresses",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.formatted",
|
||||
"name": "formatted",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "photos.formatted"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.streetAddress",
|
||||
"name": "streetAddress",
|
||||
"type": "string",
|
||||
"_index": 1,
|
||||
"_path": "photos.streetAddress",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.locality",
|
||||
"name": "locality",
|
||||
"type": "string",
|
||||
"_index": 2,
|
||||
"_path": "photos.locality",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.region",
|
||||
"name": "region",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "photos.region",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.postalCode",
|
||||
"name": "postalCode",
|
||||
"type": "string",
|
||||
"_index": 4,
|
||||
"_path": "photos.postalCode",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.country",
|
||||
"name": "country",
|
||||
"type": "string",
|
||||
"_index": 5,
|
||||
"_path": "photos.country",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"canonicalValues": [
|
||||
"work",
|
||||
"home",
|
||||
"id",
|
||||
"driver",
|
||||
"other"
|
||||
],
|
||||
"_index": 6,
|
||||
"_path": "photos.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:addresses.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 7,
|
||||
"_path": "photos.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:groups",
|
||||
"name": "groups",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"mutability": "readOnly",
|
||||
"_index": 117,
|
||||
"_path": "groups",
|
||||
"_annotations": {
|
||||
"@ReadOnly": {
|
||||
"reset": true,
|
||||
"copy": true
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:groups.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"mutability": "readOnly",
|
||||
"_index": 0,
|
||||
"_path": "groups.value"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:groups.$ref",
|
||||
"name": "$ref",
|
||||
"type": "reference",
|
||||
"mutability": "readOnly",
|
||||
"_index": 1,
|
||||
"_path": "groups.$ref"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:groups.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"mutability": "readOnly",
|
||||
"canonicalValues": [
|
||||
"direct",
|
||||
"indirect"
|
||||
],
|
||||
"_index": 2,
|
||||
"_path": "groups.type"
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:groups.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"mutability": "readOnly",
|
||||
"_index": 3,
|
||||
"_path": "groups.display"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:entitlements",
|
||||
"name": "entitlements",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 118,
|
||||
"_path": "entitlements",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:entitlements.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "entitlements.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:entitlements.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "entitlements.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:entitlements.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 0,
|
||||
"_path": "entitlements.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:entitlements.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "entitlements.display"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:roles",
|
||||
"name": "roles",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 119,
|
||||
"_path": "roles",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:roles.value",
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"_index": 0,
|
||||
"_path": "roles.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:roles.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"_index": 1,
|
||||
"_path": "roles.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:roles.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 2,
|
||||
"_path": "roles.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:roles.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "roles.display"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:x509Certificates",
|
||||
"name": "x509Certificates",
|
||||
"type": "complex",
|
||||
"multiValued": true,
|
||||
"_index": 120,
|
||||
"_path": "x509Certificates",
|
||||
"_annotations": {
|
||||
"@AutoCompact": {},
|
||||
"@ExclusivePrimary": {},
|
||||
"@ElementAnnotations": {
|
||||
"@StateSummary": {}
|
||||
}
|
||||
},
|
||||
"subAttributes": [
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:x509Certificates.value",
|
||||
"name": "value",
|
||||
"type": "binary",
|
||||
"_index": 0,
|
||||
"_path": "x509Certificates.value",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:x509Certificates.type",
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"_index": 1,
|
||||
"_path": "x509Certificates.type",
|
||||
"_annotations": {
|
||||
"@Identity": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:x509Certificates.primary",
|
||||
"name": "primary",
|
||||
"type": "boolean",
|
||||
"_index": 2,
|
||||
"_path": "x509Certificates.primary",
|
||||
"_annotations": {
|
||||
"@Primary": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "urn:ietf:params:scim:schemas:core:2.0:User:x509Certificates.display",
|
||||
"name": "display",
|
||||
"type": "string",
|
||||
"_index": 3,
|
||||
"_path": "x509Certificates.display"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -2,10 +2,8 @@ package scim
|
||||
|
||||
import (
|
||||
"github.com/cortezaproject/corteza-server/pkg/options"
|
||||
"github.com/cortezaproject/corteza-server/system/scim/assets"
|
||||
"github.com/cortezaproject/corteza-server/system/service"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/goware/statik/fs"
|
||||
"go.uber.org/zap"
|
||||
"net/http"
|
||||
"regexp"
|
||||
@ -19,18 +17,9 @@ type (
|
||||
)
|
||||
|
||||
var (
|
||||
embedded http.FileSystem
|
||||
log = zap.NewNop()
|
||||
log = zap.NewNop()
|
||||
)
|
||||
|
||||
func init() {
|
||||
var err error
|
||||
embedded, err = fs.New(assets.Asset)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func Guard(opt options.SCIMOpt) func(next http.Handler) http.Handler {
|
||||
return func(next http.Handler) http.Handler {
|
||||
// temp authorization mechanism so we do not have to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user