Full server-side authorization flow without login page

Found the solution here :smiley: