简体   繁体   中英

How to secure Django Rest API

I created custom survey with React and I want to send data once survey is complete to Drip (user managing platform) https://developer.drip.com/

I can't connect website with Drip API directly - it'll expose API Key. I decided to use Python Django with REST as proxy. My question - what's possible threats and how can I secure my Backend?

Thanks!

As per drip documentation - you could use:

OAuth 2 authentication (for public integrations)

this won't expose your API Key

There are a lot of materials on Google, how to do OAuth2 with React.

If you prefer to go with the proxy through Django with REST - thenhere you can find some informations

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM