Prevent repeat authorization prompts

Created on 19 October 2023, about 1 year ago

Problem/Motivation

Authorization prompt repeats for each Discord login.

Steps to reproduce

  1. Install and configure a Discord OAuth connection and place the social login block.
  2. Log in using the Discord link.
  3. See the prompt.
  4. Log out.
  5. Log in again, using the Discord link.
  6. See the prompt again.

Proposed resolution

According to the Discord documentation:

prompt controls how the authorization flow handles existing authorizations. If a user has previously authorized your application with the requested scopes and prompt is set to consent, it will request them to reapprove their authorization.

If set to none, it will skip the authorization screen and redirect them back to your redirect URI without requesting their authorization.

Of further interest is that...

For passthrough scopes, like bot and webhook.incoming, authorization is always required.

For this OAuth2 single sign-on, it isn't necessary to use either of these scopes. You can set up your bot separately.

Remaining tasks

  • [x] Specify prompt as none in the Authorization URL GET request.
✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcandan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024