Giter Club home page Giter Club logo

iqueensu-frontend's Issues

Use Sass in the project

Sass 包含variable功能可以有效的保证design中shared content(e.g. 颜色)(我也就想到了颜色比较repetitive) 的一致性。

Add a table under Course Load section shown in course page design.

image

最后一列Load那里的绿色Component说不定可以重复使用已经有的Component。 我晚点会把最新的code push上去。 比较麻烦的是里面的数据是从哪获取的,我查一下现在已有的api看有没有。

今天或者明天我会把写api的大概模板传上来,这样可以有个参考。

Implement Front-end API Authentication Methods

  • API Key/ Secret + Timestamp ===> For public access APIs

  • JWT Cookie Storage ===> All user login required APIs

  • CSRF Token - Web Storage ===> Prevent CSRF attacks introduced by cookie storage, the JWT token is transmitted to back-end via cookie, not header since we cannot read cookie with JAVASCRIPT once it's set as HTTP only. Thus, CSRF attack is possible. We do not need to worry about XSS.

One possible method.

  • Store JWT is an HTTP only cookie.
  • In that JWT, store a hashed version of an XSRF token.
  • Send the client the XSRF token when they sign in so they can store it in local storage
  • Later when the client sends requests, the JWT is automatically sent with each request via cookies and then you also send the XSRF token via a header or query variable and on the server side, re-hash to compare to what’s in the JWT on the server

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.