Git Product home page Git Product logo

Comments (5)

danielsequeira avatar danielsequeira commented on July 25, 2024

Hi @emadicio,

From the release/tag 2.0.0 forwards of the SDK OAuth 1.0a support was removed, this new release only supports OAuth 2.0.

This is due to the fact that in the long term we do want to deprecate OAuth 1.0a in Bynder and only use OAuth 2.0. At the moment we don't have an official plan or timeline for the deprecation, which might still take a while.

In the meantime to still make use of OAuth 1.0a and permanent tokens, you will need to use one of the previous releases/tags.

Regarding permanent tokens for our OAuth 2.0 service we just finished implementing it. And at the moment we are adding this functionality to all our SDKs, what should be finished some time during next week.

from bynder-js-sdk.

bitno avatar bitno commented on July 25, 2024

Hi @danielsequeira,

Any update on the permanent token authentication with OAuth 2.0? We are moving to 2.0 at the moment and have not been able to make the authentication work.

Any help would be highly appreciated.

Regards,
Leo

from bynder-js-sdk.

rcuisnier avatar rcuisnier commented on July 25, 2024

Hi @bitno , @emadicio ,

It should work using this method as indicated in readme :

Using a permanent token

const bynder = new Bynder({
baseURL: "https//portal.getbynder.com/api/",
permanentToken: "",
});

from bynder-js-sdk.

ricokahler avatar ricokahler commented on July 25, 2024

@rcuisnier I've tried using the permanent token as described by the readme here but it's not working for me for calls like getAssetUsage.

I think I found the potential bug here:

const request = new APICall(
this.baseURL,
"media/usage/",
"GET",
this.consumerToken,
this.accessToken,
{ asset_id: queryObject.id }
);

getAssetUsage does not use this.api and instead creates a new APICall instance where the permanent token is not passed in.

from bynder-js-sdk.

elseee avatar elseee commented on July 25, 2024

Fixed in v2.3.9

from bynder-js-sdk.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.