Giter VIP home page Giter VIP logo

lab-16's Introduction

cf Access Control (ACL)

Submission Instructions

  • Follow the instructions in the "Lab Instructions" documentation in the reference folder of the class repository

Overview

Implement Role Based Authentication

Feature Tasks -- Server

  • Protect your API Routes with the proper permissions based on user capability

    • app.get('/schema') should require the superuser capability
    • app.get(...) should require the read capability
    • app.post(...) should require the create capability
    • app.put(...) should require the update capability
    • app.patch(...) should require the update capability
    • app.delete(...) should require the delete capability
  • You will need to create, allocate, and identify user permissions in the model

  • You will need to restrict based on the given permission via middleware

Feature Tasks -- RESTy

  • Add support for basic and bearer authentication
  • You will need to add fields for those on the form
  • You will need to pass those through, when present, in the superagent calls.

Test

  • Add tests to the api routes, asserting restricted access to the routes as shown.

Documentation

Write a description of the project in your README.md, including detailed instructions for how to build your app. In your frontend README.md add a code block with your frontend .env vars, and in your backend README.md add a code block with your backend .env vars.

lab-16's People

Contributors

kozlowskicd avatar johncokos avatar

Watchers

James Cloos 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.