Code Monkey home page Code Monkey logo

ml-rbac-example's Introduction

ml-rbac-example

MarkLogic Role Based Access Control Application Example

To install:

  1. You should have MarkLogic installed
  2. I'm working on the premise that it's okay to use the Documents database (if you have content in here already, let me know and I'll create a dedicated db for the app to run against)
  3. There are 2 install scripts:
  • create-security-model.xqy
  • create-data-model.xqy Start by opening query console (localhost:8000/qconsole), copy and paste the contents of create-security-model.xqy into a query buffer
  1. Ensure Security is selected as the "Content Source" and in order, execute:
  • local:create-primary-roles()
  • local:create-secondary-roles()
  • (local:create-privileges(), local:create-users())
  1. Ensure Documents is selected as the "Content Source" and copy, paste and execute the contents of create-data-model.xqy; this will create the application server and populate the Documents database with some sample XML which will demonstrate the application
  2. Copy all the modules in the app folder to /tmp (or change the application server root accordingly) 7.Go to: localhost:9999 and try logging in as some of the different users:
  • reviewer:password
  • publisher:password
  • author:password
  • editor:password

ml-rbac-example's People

Contributors

alexbleasdale avatar ableasdale avatar

Watchers

 avatar James Cloos avatar

Forkers

dmccreary

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.