CachedNerds / lighthouse

Apache License 2.0
1 stars 1 forks source link

Add Login Endpoint Add Dummy Auth #7

Closed xmclark closed 5 years ago

xmclark commented 5 years ago

Feature Description

Lighthouse should respond to http GET requests at /_matrix/client/r0/login with JSON containing a list of the specification versions supported by Lighthouse.

Acceptance Requirements

See the docs Response: Code 200

{
  "flows": [
    {
      "type": "m.login.dummy"
    }
  ]
}

The API is "rate-limited" Code 429

{
  "errcode": "M_LIMIT_EXCEEDED",
  "error": "Too many requests",
  "retry_after_ms": 2000
}

Documentation

xmclark commented 5 years ago

I don't know how to do rate limiting with actix

xmclark commented 5 years ago

After some thought, I think we should leverage a proxy e.g. NGINX to solve the rate limiting problem. We can solve this problem later when we starting worrying about deployment more.