Title: Improve DSharpPlus.Rest for oauth2 (bearer) tokens. · Issue #1354 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: Improve DSharpPlus.Rest for oauth2 (bearer) tokens. · Issue #1354 · DSharpPlus/DSharpPlus
X Title: Improve DSharpPlus.Rest for oauth2 (bearer) tokens. · Issue #1354 · DSharpPlus/DSharpPlus
Description: Summary As of right now, the DiscordRestClient is just a dum subset of the built-in rest client. To some degree I feel like it would be appropriate to update this rest client to more properly reflect what is actually possible with Bearer...
Open Graph Description: Summary As of right now, the DiscordRestClient is just a dum subset of the built-in rest client. To some degree I feel like it would be appropriate to update this rest client to more properly refle...
X Description: Summary As of right now, the DiscordRestClient is just a dum subset of the built-in rest client. To some degree I feel like it would be appropriate to update this rest client to more properly refle...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/1354
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve DSharpPlus.Rest for oauth2 (bearer) tokens.","articleBody":"# Summary\r\nAs of right now, the `DiscordRestClient` is just a dum subset of the built-in rest client. To some degree I feel like it would be appropriate to update this rest client to more properly reflect what is actually possible with Bearer tokens.\r\n\r\n# Details\r\nAs of right now, the `DiscordRestClient` is just a rest-only client based on the bot client. It may or may not be favorable to update this client to:\r\n\r\n- Properly document what endpoints can be used with which scopes (xmldocs)\r\n- Implement OAuth2 endpoint (`/oauth2/authorize`, `/oauth2/token`, `/oauth2/token/revoke`)\r\n- Implement additional rest endpoint not supported for bot tokens (`/users/@me` stuff, joining guilds for users, attach email address to `/users/@me`, etc etc etc)\r\n- Create a new config type for oauth2 clients, might be breaking change but come on, who actually uses the DiscordRestClient right now?\r\n- Implement client credentials\r\n- Throw errors _before_ making requests when the right scopes aren't available\r\n\r\n# Steps to reproduce\r\nNot applicable\r\n\r\n# Notes\r\n- This would mean a minor version bump for v4.x to implicate minor breaking changes\r\n- A more concrete TODO list would have to be constructed.\r\n- This may or may not bring minor (breaking?) changes to the internal rest client.\r\n- Yes, I only thought about this because I need it for a web dashboard lol\r\n- I'd be down to work on this myself, let me know","author":{"url":"https://github.com/Naamloos","@type":"Person","name":"Naamloos"},"datePublished":"2022-07-22T10:10:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1354/DSharpPlus/issues/1354"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0dcd29ee-d003-957f-a94d-87e6f940fddd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9B0:47EBB:5A11268:7AF6449:698CFF9F |
| html-safe-nonce | 07df4a88e20181a9e444e8bbcec53534b11729ee3f547813f991466d043b8348 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUIwOjQ3RUJCOjVBMTEyNjg6N0FGNjQ0OTo2OThDRkY5RiIsInZpc2l0b3JfaWQiOiI2ODg2MDU1NzI4MTEwMTc0MTExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6644009a7e6a2dee3aaec96807a1239ef0577c3b4fcb847eeff45610ae4ffccb |
| hovercard-subject-tag | issue:1314811734 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/1354/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca0adb098856114a4bf657071ab00a71e6fb0727e762d4c72f1d5e537c3b2f74/DSharpPlus/DSharpPlus/issues/1354 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca0adb098856114a4bf657071ab00a71e6fb0727e762d4c72f1d5e537c3b2f74/DSharpPlus/DSharpPlus/issues/1354 |
| og:image:alt | Summary As of right now, the DiscordRestClient is just a dum subset of the built-in rest client. To some degree I feel like it would be appropriate to update this rest client to more properly refle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Naamloos |
| hostname | github.com |
| expected-hostname | github.com |
| None | f2da95634bce8a94cfa4123788169bfabdf845fd1d790fbaaaaab09dcfebdf28 |
| turbo-cache-control | no-preview |
| go-import | github.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git |
| octolytics-dimension-user_id | 36208721 |
| octolytics-dimension-user_login | DSharpPlus |
| octolytics-dimension-repository_id | 67243489 |
| octolytics-dimension-repository_nwo | DSharpPlus/DSharpPlus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67243489 |
| octolytics-dimension-repository_network_root_nwo | DSharpPlus/DSharpPlus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c21843b18feba17d11efb1895a7db61e8672f2cf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width