Fixing OAuth cancelled authorization redirect