Giter Club home page Giter Club logo

modularsecurity's People

Watchers

 avatar  avatar

modularsecurity's Issues

Backend Authentication Framework

This is a list of all issues that need to be complete for the backend to actually serve authenticated requests and to authorize users.

Initial embedded firmware

Everything we need to simply get the Pi up and running and sending data to a server. Bare minimum here, hardcoded wifi information etc.

api/user get returns 500 error

Traceback (most recent call last):
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/views.py", line 84, in view
return self.dispatch_request(*args, **kwargs)
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask/views.py", line 149, in dispatch_request
return meth(*args, **kwargs)
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/lib/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/resources/user.py", line 82, in get
return jsonify(current_user.to_json())
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/models/user.py", line 72, in to_json
"owned_systems": self.owned_systems(),
File "/home/jjaro/Desktop/John/School Files/UC/17Summer/Software Engineering/git/modularsecurity/backend/models/user.py", line 97, in owned_systems
owned = [o.system_key.get() for o in q.fetch(count)]
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/ext/ndb/utils.py", line 160, in positional_wrapper
return wrapped(*args, **kwds)
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/ext/ndb/query.py", line 1218, in fetch
return self.fetch_async(limit, **q_options).get_result()
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/ext/ndb/utils.py", line 160, in positional_wrapper
return wrapped(*args, **kwds)
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/ext/ndb/query.py", line 1237, in fetch_async
options = self._make_options(q_options)
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/ext/ndb/query.py", line 1420, in _make_options
options = QueryOptions(**q_options)
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/datastore/datastore_rpc.py", line 413, in new
value = config_option.validator(value)
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/datastore/datastore_query.py", line 1390, in batch_size
datastore_errors.BadArgumentError)
File "/home/jjaro/Desktop/Link to 17Summer/Software Engineering/git/google-cloud-sdk/platform/google_appengine/google/appengine/api/datastore_types.py", line 213, in ValidateInteger
raise exception('%s must not be 0 (zero)' % name)
BadArgumentError: batch_size must not be 0 (zero)
INFO 2017-07-08 17:29:45,361 module.py:832] default: "GET /api/user/ HTTP/1.1" 500 114

Working login page

I want to see a login page where I can click a button and go to google's oauth page and back and have our site display some kind of personal data ALONG WITH the authorization token on screen.

Resource /user/ GET

the oauth_id parameter needs to be optional and if not provided it should return the user information for the current logged in user

Can a homie get some post endpoints?

I have the UI but still need the endpoints to:

  • Update a system
  • Update a user
  • Hit the kill switch n a system
  • Add a device to a system
  • Add a secondary to a system
  • Remove a secondary of a system
  • Remove a device from a system
  • Toggle the status of a device on a system

I also need to be able to:
Get the secondaries of a system

Functional Frontend

John just start adding issues here. I want to see functionality before form.

Embedded research

We need to know a few things:

  • What OS should we put on the Pi? (and why)
  • Is micropython sufficient for what we need or should we get the entire stdlib?
  • How small can we make the firmware/OS size?
  • Do we need drivers for the door sensor?
  • How do we communicate from the door sensor?

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.