Skip to content

Cannot use role_connections.write scope with PKCE #5751

Closed
@Regalijan

Description

@Regalijan

Description

Going through the oauth flow using both the role_connections.write scope and PKCE will return an invalid_scope error to the browser

Steps to Reproduce

Go to https://discord.com/oauth2/authorize?client_id=<your_id>&code_challenge=whatever&code_challenge_method=S256&redirect_uri=<your_uri>&response_type=code&scope=identify%20role_connections.write

(validity of challenge does not matter)

Expected Behavior

The browser should be returned an authorization code in the url regardless of if PKCE is used

Current Behavior

Browser is returned an error message in the url when using PKCE, otherwise works without using it.

Screenshots/Videos

No response

Client and System Information

Edge 108.0.1462.46
Windows 11 22H2 22621.963

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions