Code Monkey home page Code Monkey logo

noted-storage-symfony's Introduction

Software License PHP Composer Open in Visual Studio Code

noted-storage-symfony

Symfony application for storing Note'd markdown notes

This is still a WIP.

Summary

This repo should be a fairly complete representation of the application. But there are instructions for setting up this application from the ground, prior to any application coding.

Objective

A user should be able to host their own instance of this application, for storing their notes.
Using OAuth, and workspace management, each instance of this storage application will be be available from within https://note-d.app.

The host of Note'd does not need knowledge or access to any storage application, since only the user's browser is the client.
This implies that a storage applition can be hosted behind a firewall, and so long as the user is behind the same firewall, they'll have unrestricted access to their own notes api host. This would be considered an additional layer of protection, on top of OAuth token authorization.

Docker

Documentation

Credits

License

The MIT License (MIT). Please see License File for more information.

noted-storage-symfony's People

Contributors

semantic-release-bot avatar shmolf avatar

Watchers

 avatar  avatar

noted-storage-symfony's Issues

OAuth Login Presentation

Trying to consider the best approach

  • Modal, with an iFrame
    • Use iFrame messaging to communicate with the parent application (So solution)
      • Concern: I don't think it's easy to tell which iframe posted the message. So, theorhetically, another user of the same API host, could post a message with their OAuth token instead. And the user would be storing notes under their account.
  • Redirect to the login site, then back
    • I think I'd need to used a Header as part of the redirect back to Note'd, after a successful login. The header would include the Auth token.
    • Would need a way to safely grab the token, w/o other JavaScript getting access.
    • OH! Maybe Note'd will give a token to the API Host, and the API host will associate the generated token, with this Note'd token.
      • Then later, after successful login, and the Note'd App is back, Note'd will request from that site, the Auth token, whilst providing the previously shared token.
      • Then, the API Host, familiar with the pre-shared token, will respond with the Auth token.

Best solution, is probably to see how other people do it.

References

  1. https://security.stackexchange.com/questions/180357/store-auth-token-in-cookie-or-header
  2. https://www.cloudways.com/blog/symfony-api-token-authentication/
  3. http://www.redotheweb.com/2015/11/09/api-security.html
  4. https://stackoverflow.com/questions/43051186/is-it-good-practice-to-use-an-iframe-to-login-with-oauth2-and-openid

Note Life Cycle

  1. A request is made to have a new note generated
  2. A new entity is created, incorporating a newly generated UUID
  3. The success-response should include the UUID, so the Client can incorporate the UUID on subsequent requests.

Related issue: shmolf/noted#23

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.