Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for token based authentication? #242

Open
bristoljon opened this issue Jan 4, 2022 · 3 comments
Open

Support for token based authentication? #242

bristoljon opened this issue Jan 4, 2022 · 3 comments
Assignees
Labels

Comments

@bristoljon
Copy link

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.

@d-mendoza
Copy link

@bristoljon I have not found a good way to add this and it's definitely a missing feature to be able to add query strings. I will raise this with our team.

@bristoljon
Copy link
Author

Thanks @d-mendoza, we have actually switched to the new React SDK version and so are using @cloudinary/url-gen to configure the url generator now so we would not need it added to this package if it's made available there.

@d-mendoza
Copy link

We would most likely add it to V2, but once I have more details, I'll send an additional update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants