summaryrefslogtreecommitdiff
path: root/script/cucumber
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-08 10:28:50 +0200
committerAzul <azul@leap.se>2014-07-14 10:49:39 +0200
commitb79a97235b5474e4775c07be1fb7c6208a29f5b4 (patch)
tree9aa5eeae2567b5ecaccd38d18e4622d8a5916c5d /script/cucumber
parentcf71d4ef08d88ee85763b258b2738fc26e3ed3eb (diff)
SessionsController#unauthenticated for 401s
Warden will catch all 401 responses at the rack level and call the app for failures. By default that is SessionsController#unauthenticated. I'm sticking with this. If we ever have other rack endpoints they can just send a 401 and the webapp will take care of the message. Other options would have been to tell warden not to take care of 401 either during initialization or by calling custom_failure! in the login_required method. We probably want a response that has a unique identifier for the error to process by the client and a translated message later on. For now i think the 401 suffices to identify the issue at hand.
Diffstat (limited to 'script/cucumber')
0 files changed, 0 insertions, 0 deletions