Giter VIP home page Giter VIP logo

esup-restdb's Introduction

esup-restdb

Web service to store data from browser.

  • authenticates user using CAS/Shibboleth
  • JSONP allowed for GETs (CAS only)
  • XHR+CORS for PUT/DELETE/...
  • database names should match CORS Origin, but specific ACLs allowed
  • pseudo sub-table "$user" specific to each users
    • "admin_xxx/$user" is forbidden, table "admin_xxx" is only accessible to admins
  • use option allowRedirect if you allow restarting your application by redirecting to CAS/IDP. You can use option prompt=none if you are inside an iframe and do not want user to enter password inside iframe (use <SSO ... conf:ignoreNoPassive="true"> in shibboleth2.xml)
  • if the value has expireAt field, it will be used to automatically remove the value at the specified date (NB: it may last a few minutes longer)

Configuration

Mongo authentication

If authentication is enabled, create a shared user for database restdb-- :

% mongo restdb-
> db.createUser({ user: 'owner', pwd: '$random', roles: [ { role: 'dbOwner', db: 'restdb-' } ] })

Then for each database, allow access:

% mongo restdb-
> db.grantRolesToUser('owner', [ { role: "dbOwner", db: "restdb-xxx" } ])

Mongo admin account

NB: you must use an account which ~/.mongorc.js containing something like:

db.getSiblingDB('admin').auth('root', 'xxx')

created for example with:

mongo admin --eval "db.createUser({ user: 'root', pwd: '$random', roles: [ { role: 'root', db: 'admin' } ] })"

esup-restdb's People

Contributors

prigaux avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esup-restdb's Issues

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.