Can the :redirect option in noir.middleware/wrap-access-rules please be changed to allow a function as well as a string? I'd like add the failed auth url to the session so that users can be redirected to it once they've logged in.
Instead of {:redirect "/login"} I'd like to use {:redirect #(str "/login?redirect-to=" (:uri noir.request/request))}. Unless there's a cleaner way of doing this?
Hi,
Can the :redirect option in noir.middleware/wrap-access-rules please be changed to allow a function as well as a string? I'd like add the failed auth url to the session so that users can be redirected to it once they've logged in.
Instead of {:redirect "/login"} I'd like to use {:redirect #(str "/login?redirect-to=" (:uri noir.request/request))}. Unless there's a cleaner way of doing this?
Regards, Vaughn