Coder Social home page Coder Social logo

memuser's Introduction

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

memuser's People

Contributors

gclayburg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.