// Tech Talk //

Creating an Authenticated API on DigitalOcean

Published on June 29, 2020 · Updated on December 21, 2020
Default avatar

By Chris Sev

Sr Developer Advocate

Creating an Authenticated API on DigitalOcean


About the Talk

We create an API that has authentication and authorization so that certain resources are only accessible by certain users.

What You’ll Learn

  1. How to build an authenticated API
  2. How to make calls to an authenticated API
  3. How to protect certain areas

This Talk is Designed For

DigitalOcean users that want to protect certain parts of their API.


A little understanding of how APIs work.

About the Presenter

Chris Sev is the founder of scotch.io and Senior Developer Advocate at DigitalOcean. He loves trying to figure out the most efficient and practical way to build apps that we can ship to our customers.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about us

About the authors
Default avatar
Chris Sev


Sr Developer Advocate

Founder of scotch.io. Slapping the keyboard until good things happen.

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Question about overriding the find() controller.

If I don’t override anything, by default hitting the localhost:1337/posts url returns an array of all the posts.

If I add an aync find() function into the controller (I’m adding url query param to also filter posts by specific user), and even just do a strapi.query('post').find(), the result is now an object with keys rather than an array?

Does it not use strapi.query('post').find() by default, and if it does, how come manually telling it to use strapi.query('post').find() doesn’t return the results as an array?

Great video!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.