mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 08:55:17 -05:00
The AWS CLI builds the cross-device redirect from the Sign-In endpoint it resolved, so with --endpoint-url it sends Floci's own address plus /v1/sessions/confirmation. Floci accepted only an https AWS sign-in host there and served no confirmation page, so the authorize request was refused and the remote login could not finish. A cross-device redirect is now also accepted on the scheme, host and port the authorize request arrived on, and GET /v1/sessions/confirmation shows the verification code in the form the CLI decodes. Any other origin is still refused. Signed-off-by: Hector Ventura <hectorvent@gmail.com>