mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 02:18:50 +00:00
Fix handling invalid client reason (#828)
* Catch different reasons * redirect
This commit is contained in:
@@ -82,8 +82,11 @@ defmodule FzHttpWeb.AuthController do
|
||||
|
||||
# Error verifying claims or fetching tokens
|
||||
{:error, action, reason} ->
|
||||
Logger.warn("OpenIDConnect Error during #{action}: #{reason}")
|
||||
send_resp(conn, 401, "")
|
||||
Logger.warn("OpenIDConnect Error during #{action}: #{inspect(reason)}")
|
||||
|
||||
conn
|
||||
|> put_flash(:error, "Failed when performing this action: #{action}")
|
||||
|> redirect(to: Routes.root_path(conn, :index))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user