Respond with unauthorized instead of error
This commit is contained in:
@@ -75,7 +75,7 @@ defmodule SsoBsnWeb.Router do
|
||||
end
|
||||
|
||||
scope "/", SsoBsnWeb do
|
||||
pipe_through [:api, :fetch_session, :fetch_current_user, :require_authenticated_user]
|
||||
pipe_through [:api, :fetch_session, :fetch_current_user]
|
||||
|
||||
get "/whoami", UserSessionController, :check_auth
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user