ML-5: document Last.fm OAuth callback trust boundary

Closes GitHub issue #178.
This commit is contained in:
Claudio Ortolina
2026-04-24 08:05:07 +01:00
parent 38b53592c5
commit 90db113845
3 changed files with 76 additions and 8 deletions
+4
View File
@@ -52,6 +52,10 @@ defmodule MusicLibraryWeb.Router do
get "/login", SessionController, :new
post "/sessions/create", SessionController, :create
# Deliberately outside the `:logged_in` pipeline: this is the OAuth
# callback from Last.fm and the third-party redirect can't carry our
# session cookie. See `MusicLibraryWeb.LastFmController` moduledoc for
# the full trust boundary.
get "/auth/last_fm/callback", LastFmController, :callback
get "/public/assets/:transform_payload", AssetController, :show