Code Monkey home page Code Monkey logo

Comments (5)

bbaassssiiee avatar bbaassssiiee commented on September 25, 2024

--2018-02-28 11:25:57-- http://localhost:8880/Users
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8880... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm=""
Reusing existing connection to localhost:8880.
HTTP request sent, awaiting response... 404 Not Found
2018-02-28 11:25:57 ERROR 404: Not Found.

from scimgateway.

jelhub avatar jelhub commented on September 25, 2024

Hi,
You might be looking for the SCIM bulk operator functionality?
http://www.simplecloud.info/specs/draft-scim-api-01.html#bulk-resources
https://tools.ietf.org/html/rfc7644#section-3.7

Regards,
Jarle

from scimgateway.

schiphol-wilbur avatar schiphol-wilbur commented on September 25, 2024

INVALID, we PUT them in one by one.

#!/bin/sh -e

wget -q --method=PUT \
 --output-document=/dev/null \
 --header "Content-Type: application/json" \
 --http-user=scim_admin --http-password=change_it \
 --body-file=testdata/Donald.json http://localhost:8880/Users/Donald_D

from scimgateway.

schiphol-wilbur avatar schiphol-wilbur commented on September 25, 2024

Issue can be closed

from scimgateway.

jelhub avatar jelhub commented on September 25, 2024

ScimGateway would pass body content to plugin code
Your plugin could then check for array content and parse this content.
For each user you could then emit a modifyUser or createUser having correct userName and attrObj content

In method scimgateway.on('createUser',...) or scimgateway.on('modifyUser',...)
you then do:
scimgateway.emit('modifyUser', baseEntity, userName, attrObj, function (err) {...}

Body sent to ScimGateway must be JSON:

{
"values": [
{
"externalId": "Donald_D",
"userName": "Donald_D",
"active": "true",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
]
},
{
"externalId": "Huey_D",
"userName": "Huey_D",
"active": "true",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
]
},
{
"externalId": "Dewey_D",
"userName": "Dewey_D",
"active": "true",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
]
},
{
"externalId": "Louie_D",
"userName": "Louie_D",
"active": "true",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
]
}
]
}

from scimgateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.