mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
CreateWebLoginToken returned a token nothing accepted: the proxy had no /aws_mwaa/login, so a client following Amazon MWAA's REST API guide got a 404, and with Airflow's session-only API auth every /api/v1 call then answered 403. Web login tokens are now kept per environment for the 60 seconds AWS documents. The proxy intercepts POST /aws_mwaa/login: a valid token in the `token` form field signs in through Airflow's own login form (CSRF token and anonymous session from GET /login/, then the admin credentials Floci generated) and answers 302 to /home with Airflow's session cookie, which the UI and /api/v1 accept. An unknown or expired token gets 401. With floci.tls.enabled, WebserverUrl already named an https endpoint while the proxy only spoke HTTP; the proxies now serve TLS with Floci's server certificate and follow its reissues, so a client that builds https://{WebServerHostname} reaches them.