Skip to content

Authentication issues when introducing create asset usage call.  #22

Open
@SamDenHaerynck

Description

Hi,

We came across this authentication issue when we were adding the asset usage calls to release version 1.3 of this SDK.

We are using OAuth 1.0 for authentication and all calls under the api/v4 version of the Bynder API are working with the current setup. When implementing the create asset usage call which uses an unversioned endpoint (/api/media/usage/) we keep getting a 401 error.

When contacting Bynder support they claim you can't add the payload for the post request to both the body and the query string which is the case for all post calls included in the Bynder SDK. The create asset usage call only works with the payload included in the body and not in the query string.

But the authentication OAuthMessageHandler.GenerateSignature method requires the query string payload in order to generate a correct signature.

So this is quite inconsistent behavior between the existing SDK and the Bynder API.
Can someone from the team please take a look at it and give some useful feedback?

Thanks!

Kind regards,
Sam Den Haerynck
delaware

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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