Fixing authorization controller to call Scala server