hasura-auth icon indicating copy to clipboard operation
hasura-auth copied to clipboard

Add Discord error redirect, for user canceling on oauth screen

Open fungilation opened this issue 3 years ago • 1 comments

On Discord. If user click Cancel on the discord oauth screen, user gets redirected to something like https://vvfatfhruxzgfdfaefic.nhost.run/v1/auth/signin/provider/discord/callback?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request&state=e821fa91-955a-4e2e-a338-215262334f65

Should instead, redirect to auth redirectTo target as if successful, but with error code like OauthCancelled so our website can display appropriate error for it and ask user to login again, and grant authorization on the oauth provider's screen.

fungilation avatar Mar 24 '22 01:03 fungilation

Issue also applies to Twitch for example. Redirect on oauth cancellation should be applicable to all providers where applicable

fungilation avatar May 13 '22 02:05 fungilation