Oauth interaction
response type
#4003
Unanswered
muddyfish
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 3 replies
-
That is against the OAuth specs(see quote below). Could be done in GNAP, once Discord implements a GNAP resource server. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now we can open oauth prompts in-app, this allows us to add bots to servers without entering the web browser.
This feature request proposes a new
response_type
which sends a http get request to the specifiedredirect_uri
without redirecting the user there. When used in-app, this would allow a user to make an oauth request without the user leaving the Discord client.In addition, oauth requests made from the Discord client should be able to spawn an interaction event in the channel so we can do something with the response, assuming it was ran from a guild with the
application.commands
scope, and receiving the interaction when transferring the code for access tokens. This could alternatively be implemented as an interaction event received over the normal interactions channel with the oauth access token in the event.This would allow us to power interactions which require one or more scopes only available through oauth. Here are some example commands which could be implemented if this were a feature:
Beta Was this translation helpful? Give feedback.
All reactions