# Getting started with FastAPI Web App

**URL:** <https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522>\
**Category:** Get Help\
**Tags:** auth0-python, sdks-quickstarts\
**Created:** [November 9, 2023, 4:51am UTC](https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522 "2023-11-09T04:51:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandt.rick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brandt.rick/32/52311_2.png) [@brandt.rick](https://community.auth0.com/u/brandt.rick)\
**Post date:** [November 9, 2023, 4:51am UTC](https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522/1 "2023-11-09T04:51:47Z")

</div>

Hello, I’m new here and trying to get started with Auth0 for my python FastAPI web app. I found a great sample implementation that parallels what I want to do here:

> <https://github.com/auth0-samples/auth0-python-web-app/tree/master/01-Login>
>
> //github.com/auth0-samples/auth0-python-web-app/tree/master/01-Login

except that it is for Flask. Is there a similar piece of sample code, but for FastAPI?

BTW, I did see this:

> **[GitHub - auth0-developer-hub/api\_fastapi\_python\_hello-world](https://github.com/auth0-developer-hub/api_fastapi_python_hello-world/tree/main)**
>
> main

but it doesn’t appear to be parallel to the above Flask example; it’s much more complex and doesn’t contain /login and /logout routes, so I assume it is for a different type of application.

Thank you,  
Rick

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 13, 2023, 6:56pm UTC](https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522/3 "2023-11-13T18:56:15Z")

</div>

Hi @brandt.rick,

Welcome to the Auth0 Community!

It doesn’t look like we have a 1:1 example for FastAPI like the Flask example.

I think you should be able to implement it with authlib, similar to this example:

> **[Google login for FastAPI](https://blog.authlib.org/2020/fastapi-google-login)**
>
> FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python ...

If you have any questions, let me know.

---

<div class="post-metadata">

**Author:** ![brandt.rick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brandt.rick/32/52311_2.png) [@brandt.rick](https://community.auth0.com/u/brandt.rick)\
**Post date:** [November 13, 2023, 7:13pm UTC](https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522/4 "2023-11-13T19:13:28Z")

</div>

Thank you Dan, that looks like it will be helpful!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 13, 2023, 7:37pm UTC](https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522/5 "2023-11-13T19:37:45Z")

</div>

Happy to help! Let me know.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 27, 2023, 7:38pm UTC](https://community.auth0.com/t/getting-started-with-fastapi-web-app/120522/6 "2023-11-27T19:38:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
