Title: BoxApi20 can't obtain access_token · Issue #1045 · scribejava/scribejava · GitHub
Open Graph Title: BoxApi20 can't obtain access_token · Issue #1045 · scribejava/scribejava
X Title: BoxApi20 can't obtain access_token · Issue #1045 · scribejava/scribejava
Description: According to BOX provider documentation client_id and client_secret parameters should be included in body of the request when obtaining an access token, but in current implementation they are encoded as base64 and included in Authorizati...
Open Graph Description: According to BOX provider documentation client_id and client_secret parameters should be included in body of the request when obtaining an access token, but in current implementation they are encod...
X Description: According to BOX provider documentation client_id and client_secret parameters should be included in body of the request when obtaining an access token, but in current implementation they are encod...
Opengraph URL: https://github.com/scribejava/scribejava/issues/1045
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BoxApi20 can't obtain access_token ","articleBody":"According to BOX provider documentation `client_id` and `client_secret` parameters should be included in body of the request when obtaining an access token, but in current implementation they are encoded as base64 and included in Authorization header.\r\nhttps://developer.box.com/reference/post-oauth2-token/\r\n\r\nSolution is to override `getClientAuthentication` method in `BoxApi20` class and return `RequestBodyAuthenticationScheme.instance()` from it.\r\n\r\nAlso BoxApi20 doesn't sign requests correctly. It should be switched to use `BearerSignatureAuthorizationRequestHeaderField` signature instead of using `BearerSignatureURIQueryParameter`. I guess for this, we just need to remove overriden `getBearerSignature` method from BoxApi20`.\r\n\r\nLook at the example of API call\r\nhttps://developer.box.com/reference/get-metadata-templates-enterprise-securityClassification-6VMVochwUWo-schema/\r\n\r\n","author":{"url":"https://github.com/petrkopotev","@type":"Person","name":"petrkopotev"},"datePublished":"2022-08-04T10:07:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1045/scribejava/issues/1045"}
| 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:4b338e40-3a81-dd19-9c35-cd633bf0e7f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D046:1B1EBD:16FB829:1EB778F:69703B7F |
| html-safe-nonce | 5c278661103f3201ce63f94a355d3c743d3ad9080696015d2f3c0a39020a24b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDQ2OjFCMUVCRDoxNkZCODI5OjFFQjc3OEY6Njk3MDNCN0YiLCJ2aXNpdG9yX2lkIjoiMjE4NTQxNjMyODQ4MDgzMjM4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5f9d816ba1dd1c0e6f07f0d7e3d4e85d20995d6213db800ff6eceea61b0881bd |
| hovercard-subject-tag | issue:1328389185 |
| 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/scribejava/scribejava/1045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eaa30216003cb1de4b26f4402442f70922ad0398983a9163dbdcd75f627dde05/scribejava/scribejava/issues/1045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eaa30216003cb1de4b26f4402442f70922ad0398983a9163dbdcd75f627dde05/scribejava/scribejava/issues/1045 |
| og:image:alt | According to BOX provider documentation client_id and client_secret parameters should be included in body of the request when obtaining an access token, but in current implementation they are encod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | petrkopotev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/scribejava/scribejava git https://github.com/scribejava/scribejava.git |
| octolytics-dimension-user_id | 15140551 |
| octolytics-dimension-user_login | scribejava |
| octolytics-dimension-repository_id | 889932 |
| octolytics-dimension-repository_nwo | scribejava/scribejava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 889932 |
| octolytics-dimension-repository_network_root_nwo | scribejava/scribejava |
| 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 | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width