Skip to main content
Commonmark migration
Source Link

Here is the URL I am trying to use:

https://stackexchange.com/oauth/dialog?client_id=120&scope=read_inbox,no_expiry&redirect_uri=https://stackexchange.com/oauth/login_success

This works perfectly when the user is logged in but when a user is not logged in, the following happens:

https://stackexchange.com/oauth/dialog?client_id=120&redirect_uri=https://stackexchange.com/oauth/login_success&scope=read_inbox,no_expiry&response_type=token&state=&returnurl=/oauth/dialog?client_id=120&redirect_uri=https%3a%2f%2fstackexchange.com%2foauth%2flogin_success&scope=read_inbox,no_expiry&response_type=token&state=

https://stackexchange.com/oauth/dialog?client_id=120&redirect_uri=https%3a%2f%2fstackexchange.com%2foauth%2flogin_success&scope=read_inbox,no_expiry&response_type=token&state=

https://stackexchange.com/oauth/https://stackexchange.com/oauth/login_success#error=access_denied&error_description=user+denied+this+authentication+request

What am I doing wrong?

edited tags
Link
Kevin Montrose
  • 18.7k
  • 6
  • 35
  • 62