# Build and Secure an API in Python with FastAPI

**URL:** <https://devforum.okta.com/t/build-and-secure-an-api-in-python-with-fastapi/17337>\
**Category:** Developer Blog Comments\
**Created:** [December 17, 2020, 6:46pm UTC](https://devforum.okta.com/t/build-and-secure-an-api-in-python-with-fastapi/17337 "2020-12-17T18:46:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [December 17, 2020, 6:46pm UTC](https://devforum.okta.com/t/build-and-secure-an-api-in-python-with-fastapi/17337/1 "2020-12-17T18:46:32Z")

</div>

[Build and Secure an API in Python with FastAPI](https://developer.okta.com/blog/2020/12/17/build-and-secure-an-api-in-python-with-fastapi)

How to quickly build a Python REST API with FastAPI and secure it with Okta.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 9, 2021, 12:07am UTC](https://devforum.okta.com/t/build-and-secure-an-api-in-python-with-fastapi/17337/2 "2021-01-09T00:07:31Z")

</div>

**Deifante Walters**

I implemented some of the patterns that are laid out here. I did a synk security scan that informed me that the okta\_jwt library includes a security vulnerability. [https://app.snyk.io/vuln/SN…](https://app.snyk.io/vuln/SNYK-PYTHON-RSA-1038401 "https://app.snyk.io/vuln/SNYK-PYTHON-RSA-1038401"). Are there any plans to make changes to the okta\_jwt library to circumvent this issue?

---

<div class="post-metadata">

**Author:** ![Lewistrick](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@Lewistrick](https://devforum.okta.com/u/Lewistrick)\
**Post date:** [December 14, 2022, 10:41am UTC](https://devforum.okta.com/t/build-and-secure-an-api-in-python-with-fastapi/17337/3 "2022-12-14T10:41:42Z")

</div>

I’m trying to follow this tutorial so I can implement it in my own FastAPI app, but there seem to have been a lot of changes in the Okta admin environment since this was written, for example:

- Setting up a new application is different
- I can’t find issuer ID and audience
- Managing scopes has another structure

Are there any sources for finding how to implement Okta auth in my FastAPI app or what the differences are since this tutorial?
