Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BoxApi20 can't obtain access_token #1045

Open
@petrkopotev

Description

@petrkopotev

According to BOX provider documentationclient_id andclient_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.
https://developer.box.com/reference/post-oauth2-token/

Solution is to overridegetClientAuthentication method inBoxApi20 class and returnRequestBodyAuthenticationScheme.instance() from it.

Also BoxApi20 doesn't sign requests correctly. It should be switched to useBearerSignatureAuthorizationRequestHeaderField signature instead of usingBearerSignatureURIQueryParameter. I guess for this, we just need to remove overridengetBearerSignature method from BoxApi20`.

Look at the example of API call
https://developer.box.com/reference/get-metadata-templates-enterprise-securityClassification-6VMVochwUWo-schema/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp