Skip to content

chintana-zz/goscim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoSCIM

SCIM 2.0 spec implementation in Go. Still very much work in progress

Implementation summary so far

  • /Users - GET, POST, PUT, DELETE
  • /Groups - GET, POST, PUT, DELETE

How do I run this?

  1. This use MongoDB as the persistent store. Install MongoDB and run it with the default port 127.0.0.1:27017. It'll use a db called "users" to store user info
  2. Set $GOPATh and execute following
    • $ go get bitbucket.org/chintana/goscim
    • $ go install bitbucket.org/chintana/goscim
    • $ goscim

API calls

Users

  • Create user

curl -X POST --data @create-user.json http://localhost:8080/Users

  • Retrieve user. Use userId from previous create step

curl http://localhost:8080/Users/52ae1f8c-ff8b-dd32-ab40-2e8d6f5a06ed

  • Update user. User an existing userId

curl -X PUT --data update-user.json http://localhost:8080/Users/52ae1f8c-ff8b-dd32-ab40-2e8d6f5a06ed

  • Delete user

curl -X DELETE http://localhost:8080/Users/52ae1f8c-ff8b-dd32-ab40-2e8d6f5a06ed

Groups

  • Create group

  • Retrieve group

  • Update group

  • Delete group

TODO

  • Make functionality spec complete
  • Make hard coded entries into a config file
  • Generate/document using Swagger

About

Experimental SCIM 2.0 API impl. in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages