[Request] Update the OAuth login page to properly handle new accounts
I switched my app to OAuth as requested by reddit, but I lost several things in the process. Such as giving the users the ability to create a new account in the app.
Right now, the oauth page allows the user to create an account but it doesn't validate the application once the account is created, nor does it create a token.
Which means the process to create a new account via the app is to click login -> navigate to the new account section in the oauth page -> create the account -> exit out of the login window -> reopen the login window -> log in with the credentials of the new account.
Posted Jun 9, 2015, 10:30 PM UTC
When a user needs authorization in my app, they are sent to Reddit.com via URL where, if they're not logged into an account, can log in or create an account on the same page. If the user creates a new account, they are immediately redirected to the authorization page, which works as normal: They click "allow" and are sent back to my app with proper tokens.
Are you saying you're trying to have users create new Reddit accounts directly through your app without any direct Reddit.com interaction? If so, that's where you're running into trouble?
In order to run an app with OAuth, you need user authorization which can only come from reddit.com. Users will have to login from reddit.com and/or create a new account from reddit.com and then pass along that authorization to your app. Your app cannot access the API with the user's credentials otherwise.
I'm using the compact authentication page, when they create a new account, they are redirected to the front page, as if they were never authenticating at all. It never redirects to the return url.
I'm authenticating through oauth now. Which is why I lost the ability to create accounts natively.
ah, that's a detail that wasn't mentioned. I haven't tested with that page.