Support for token based authentication?

Open
#242 3 comments 0 reactions 1 assignee View on GitHub

@patrick-tolosa is already working on this.

Since Jan 6, 2022.

Assessment

This issue has not been assessed yet.

Description

bug

Hi, trying to work out how best to integrate token based authentication with this SDK.

Our backend provides a token giving access to specific folders in Cloudinary which we can append to the delivery url for assets to allow client to access restricted images however not sure how to provide this to the Cloudinary context...

Was hoping it would be something like:

<CloudinaryContext cloudName="demo" token={token}>
  <Image publicId="sample">
    <Transformation width="200" crop="scale" angle="10"/>
  </Image>
</CloudinaryContext>

And the SDK appends the token passed as a param.

Dominant language
JavaScript
Stars
501
Forks
211
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudinary/cloudinary-react

All issues in cloudinary/cloudinary-react

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.