When login button is hit in the demo application, nothing happens (apart from brief "loading" dialog). When I've uncommented https://github.com/aerogear/aerogear-otp-ios-demo/blob/master/AeroGear-OTP-Demo/AeroGear-OTP-Demo/Controllers/AGLoginViewControler.m#L56 the error was, that server responded with 400 Bad Request status.