Hive Hive
Sign in

fix(auth): harden provider request startup

GitHub issue · Closed

Metadata
Source
tuist/hive #16
Updated
Jun 24, 2026
Domains
Hive
Details

Summary

  • Add an Auth helper for looking up the Ueberauth strategy configured for a provider.
  • Start the configured provider from AuthController.request/2 when the Ueberauth plug route table falls through.
  • Cover the fallback path with a controller regression test using a fake redirect strategy.

Testing

  • mix test test/hive_web/controllers/auth_controller_test.exs test/hive_web/live/account_live/identities_test.exs
  • mix compile --warnings-as-errors
  • mix test
  • MIX_ENV=test HIVE_GITHUB_CLIENT_ID=client-id HIVE_GITHUB_CLIENT_SECRET=client-secret mix run -e 'Application.ensure_all_started(:hive); conn = Plug.Test.conn(:get, "/auth/github"); conn = HiveWeb.Endpoint.call(conn, []); IO.inspect({conn.status, Plug.Conn.get_resp_header(conn, "location"), conn.halted})'
Flights

Investigate, reproduce, or fix this item in an isolated repository. Each Flight preserves its outcome and agent session.

New Flights are paused Configure model inference, GitHub, and a sandbox provider to start another Flight. Existing results remain available below.
No Flights yet

Start a Flight and preserve its objective, outcome, and session here.

Comments

No GitHub comments yet.