``` authentication { ...
# ktor
e
Copy code
authentication { 
                // challenge (pre configured auth) all sub routes and by challenging it       somehow gets redirected to the login page
                // I don't have access to the application call in the auth pipeline to redirect
                route("account"){
                    
                }
                route("admin"){
                    
                }
            }
d
Exactly this is going to be supported soon, when the auth-dsl branch is merged. Hopefully it will be available in the next version. For now your best bet is to extract the authentication code to a function and call it for each route
e
Great, Thanks!