Mount verk_web under protected scope instead of basic auth?
Opened this issue · 3 comments
mitcheaton1 commented
Hi! Love Verk. Question. Is there a way to mount the verk route under a protected scope as opposed to using basic auth? We use pow to protect routes and would like to put the /verk route under an authenticated scope instead if basic auth.
something like:
scope "/", do
pipe_through [:browser, :protected]
forward("/verk", VerkWeb.MountRoute)
end
edgurgel commented
Hey @mitcheaton1, I think you can achieve this by ensuring that authorization
not defined at all:
verk_web/lib/verk_web/endpoint.ex
Lines 43 to 47 in 0b1dc97
TBH we should probably revisit this now that Phoenix seems to handle mounting external endpoints more easily 🤔
aleDsz commented
Is this still in progress? Or you guys want help?