Giter Site home page Giter Site logo

feather's People

Contributors

dmitry-n-medvedev avatar

Watchers

 avatar

feather's Issues

Offer Service

after a client answers all the poll's questions, he should be able to post the result to /get-offer resided on the file server.

the workflow:

  1. the client has the answers at hand in a form of a JSON
  2. the client requests an Access Token for the next operation
  3. the client issues a POST request to <file-server>/get-offer supplying the Access Token in the Authorization header
  4. the NGINX of the file server authorizes the request and if successful sends it down the line to the Offer Server
  5. the Offer Server should analyze the answers it receives ( not in this incarnation ) and returns an offer to the client

Token Server

This should run under either PM2, or in a Docker container

Auth Server

Executable.

The Auth Server authenticates requests for questionnaire static files managed by the NGINX.

The NGINX contacts the Auth Server before serving JSON files to the Client. The Auth Server sits behind the HAproxy with the token provided by the client.

NOTE: the NGINX should somehow pass the URL the Client tries to access and the Token the Client supplies.

See: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-subrequest-authentication/

NOTE:

(see: https://nginx.org/en/docs/http/ngx_http_proxy_module.html?&_ga=2.249142535.1673781331.1610988303-447784772.1610634828#proxy_pass)

If the proxy_pass directive is specified with a URI, then when a request is passed to the server, the part of a normalized request URI matching the location is replaced by a URI specified in the directive:

location /name/ {
    proxy_pass http://127.0.0.1/remote/;
}

If proxy_pass is specified without a URI, the request URI is passed to the server in the same form as sent by a client when the original request is processed, or the full normalized request URI is passed when processing the changed URI:

location /some/path/ {
    proxy_pass http://127.0.0.1;
}

AccountToken

I should be able to generate and validate an AccountToken.

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.