Skip to content

gclayburg/memuser

Repository files navigation

Docker Pulls

memuser

In-memory storage of User data using the SCIM protocol

build and run

To build and run memuser, use the embedded gradle:

$ ./gradlew bootJarRun

run from docker image

This project is also published as a docker image on docker hub. To run a pre-built docker image:

$ docker run -d -p8080:8080 gclayburg/memuser:latest

Memuser should be running and listening on port 8080.

Add a user

Add a minimal user

$ curl 'http://localhost:8080/api/v2/Users' -i -X POST \
    -H 'Content-Type: application/scim+json' \
    -H 'Accept: application/scim+json' \
    -d '
{
  "userName": "alicesmith",
  "displayName": "Alice P Smith"
}
'

Get user list

$ curl 'http://localhost:8080/api/v2/Users/' -i \
    -H 'Accept: application/scim+json'

Multi-domains

New in version 0.8.0 is the ability to add users to an arbitrary, independent domain. For example, add a user to 'fakehr':

Add a user to fakehr

Add a minimal user

$ curl 'http://localhost:8080/api/multiv2/fakehr/Users' -i -X POST \
    -H 'Content-Type: application/scim+json' \
    -H 'Accept: application/scim+json' \
    -d '
{
  "userName": "alicesmith",
  "displayName": "Alice P Smith"
}
'

As you can see, there is no setup of fakehr required - just add users to it.

Get user list from fakehr

$ curl 'http://localhost:8080/api/multiv2/fakehr/Users/' -i \
    -H 'Accept: application/scim+json'

More examples can be found in the guide.

Version history

See Changelog.md