Code Monkey home page Code Monkey logo

prototype's People

Contributors

ac4g avatar petersil1998 avatar

Watchers

 avatar

prototype's Issues

Refactoring API SecurityService

Methods

Remove duplication

  • createPayloadWithAccessAndRefreshTokenFromAuthToken
  • createPayloadWithAccessAndRefreshTokenFromRefreshToke

Dark Mode

Rebuild the hole website in to dark mode

2fa EventListener

  • if the user is not 2fa verified, send him to route 2-step-verification?action=enable

Cron Job

setup cron job for deleting expired reset password tokens

Change JWT validation

  • pass hole access token object
  • validate from the array decoded from jwt if the client is permitted

Profile features

  • add 2fa authentification
  • create profile page for visiting users page
  • follow

Secure the transfer of the item to the inventory

  • only the creator of with valid contractor is permitted to give user a item
  • or manipulate it

Todo

  • set a middleware for Inventory API for validating Client if he is the creator or has a valid contract
  • build a contract system for allowing or denying contract requests and setting specific permissions

API Pagination

add pagination to:

  • Inventory
  • Item
  • API

Items per request

default: 20
max: 100

Set up JWT Token Middleware for specific routes

Routes

InventoryController

  • api_inventories
  • api_inventory_by_property
  • api_inventory_by_property_and_item_id
  • api_inventories_item_by_id_remove_parameters

ItemsController

  • api_items_by_identifier PATCH
  • api_item_by_id_process_parameters DELETE

OAuth Not you

change user

  • logout him
  • redirect to login
  • after login redirect back to oauth

Login Log

  • log users login (ip, time, location, device name)
  • if ip is different from previous ones, send email notification

OAuth auto login

If user is already logged, he does not need to write his credentials just sign approve

Creator features

  • add filter search
  • create item
  • create group
  • create collection
  • show item information
  • edit item

Add filters to API

Routes

  • Inventory by uuid
  • Items | Items by uuid

functionality

  • search query
  • by amount
  • by project name
  • by creator (uuid or nickname)

Item

  • by parameter

Filter structure:

  • in url
  • activation with ?filter=1
  • first search in cache via Redis Search
  • cache returns null, search in db

Split API routes

Routes with parameter property are split into:

  • by id
  • by username

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.