# \#flask

**URL:** https://community.auth0.com/tag/flask/1282.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Let only specific roles to access specific routes Python Flask](https://community.auth0.com/t/let-only-specific-roles-to-access-specific-routes-python-flask/87959)

<div class="topic-metadata">

**Author:** [@eliya](https://community.auth0.com/u/eliya)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 2:49pm UTC](https://community.auth0.com/t/let-only-specific-roles-to-access-specific-routes-python-flask/87959 "2022-08-01T14:49:54Z")

</div>

I’m new to auth0 and I have a website built with flask, one of the functions of the site is creating posts, and I want that only specific roles like admin could access that route (I already made the admin role in the das…

---

## [Invalid claims from backend API in production but successful in development environment](https://community.auth0.com/t/invalid-claims-from-backend-api-in-production-but-successful-in-development-environment/76125)

<div class="topic-metadata">

**Author:** [@authgent](https://community.auth0.com/u/authgent)\
**Replies:** 4\
**Last updated:** [January 11, 2022, 5:47pm UTC](https://community.auth0.com/t/invalid-claims-from-backend-api-in-production-but-successful-in-development-environment/76125 "2022-01-11T17:47:45Z")

</div>

I am using Auth0Provider to secure routes in my React application. I also have a Flask backend that protects resources from this tutorial: Auth0 Python API SDK Quickstarts: Authorization I then use getAccessTokenSilentl…

---

## [Flask sample app login fails: Missing jwks\_uri in metadata](https://community.auth0.com/t/flask-sample-app-login-fails-missing-jwks-uri-in-metadata/74230)

<div class="topic-metadata">

**Author:** [@Calybyte](https://community.auth0.com/u/Calybyte)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 12:22am UTC](https://community.auth0.com/t/flask-sample-app-login-fails-missing-jwks-uri-in-metadata/74230 "2021-12-17T00:22:38Z")

</div>

Hi everyone, I am new to Auth0 and I have been reading various docs and tutorials. I had no problems with the FastAPI tutorial, but I’m stuck in the Flask tutorial. Here’s what I did: Downloaded the example project fr…

---

## [How to use opaque token in Flask Backend?](https://community.auth0.com/t/how-to-use-opaque-token-in-flask-backend/63775)

<div class="topic-metadata">

**Author:** [@aravind0136](https://community.auth0.com/u/aravind0136)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 2:59pm UTC](https://community.auth0.com/t/how-to-use-opaque-token-in-flask-backend/63775 "2021-06-03T14:59:09Z")

</div>

I’m logging my users in using Auth0 and getting back an opaque token which I’m passing on to Flask backend API. How do I validate these opaque tokens? How do I protect every request? How to I get user info on every re…

---

## [Userinfo request](https://community.auth0.com/t/userinfo-request/55370)

<div class="topic-metadata">

**Author:** [@rchamila](https://community.auth0.com/u/rchamila)\
**Replies:** 17\
**Last updated:** [January 6, 2021, 4:38pm UTC](https://community.auth0.com/t/userinfo-request/55370 "2021-01-06T16:38:39Z")

</div>

Hi, I’m trialling Python flask app with Auth0 and it seems userinfo request only returns roles in the response. I have checked this using a Postman request and it returns the same. Could you please clarify why is that? …
