Skip to content

Support for token based authentication? #242

@bristoljon

Description

@bristoljon

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions