Comments (8)
Hello @tokusumi, yesterday I discovered this repo. Had the same problem. Also solved it by reinstalling the environment. Here are some requirements. (I'm moving my repo from Flask to fastAPI backend, just so you don't wonder ^^). I installed via pip3 install fastapi-cloudauth
. I hope this helps you reproduce the error. Sadly I didnt freeze the requirements, so I can't tell you which versions I used.
flask #removed when reinstalling
jinja2 #removed when reinstalling
gunicorn #removed when reinstalling
boto3 #removed when reinstalling
pandas #removed when reinstalling
fastapi
uvicorn
python-jose
requests
dotenv #removed when reinstalling
fastapi-cloudauth
from fastapi-cloudauth.
How did you install this? Please tell me reproducible way.
from fastapi-cloudauth.
I cannot reproduced 😢 .
I tried the followings commands in the configurations:
- Python: v3.8.3
- pip: v18.1
- application file: copy the example in readme and paste it in app.py
Notice that you must set valid region and user pool id in environment variables in the last line.
$ python3 -m venv env
$ source env/bin/activate
$ python -m pip install -U flask jinja2 gunicorn boto3 pandas
$ python -m pip install -U fastapi uvicorn python-jose requests python-dotenv
$ python -m pip install -U fastapi-cloudauth
$ export REGION=us-east-1 && export USERPOOLID=us-east-1_xxxxxxxxx && uvicorn app:app
INFO: Started server process [20051]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
from fastapi-cloudauth.
Came across 👍 Thank you. I'll try to find a solution.
from fastapi-cloudauth.
I got this too and "fixed" it by recreating my condo Env. It only occurred after I installed some new packages which I didn't end up needing (I forget which). Happens when one of the classes returns a copy of itself. I might get around to a pr
from fastapi-cloudauth.
Hi, all!
I updated to resolve this problem in master branch and tested that in my reproducible environment. Could you check it with the latest master branch?
from fastapi-cloudauth.
@tokusumi pip3 install git+https://github.com/tokusumi/fastapi-cloudauth.git
does't throw the pickle error anymore. Thanks for resolving :)
from fastapi-cloudauth.
Thank you for helping us.
To fix this error, v0.1.3 was released.
from fastapi-cloudauth.
Related Issues (20)
- Add required scopes to generated OpenAPI documentation
- Cannot access `/users/` using the AWS Cognito configuration HOT 2
- Firebase - Unauthenticated request is not raising an exception HOT 1
- Standalone function to verify token
- firebase.JWKS public keys expire and don't get refreshed HOT 2
- Cognito "iat" claim set in the future HOT 1
- Add ability to specify `user_info` as an extra parameter when instantiating `UserInfoAuth` derived classes HOT 1
- "not verified" response - cognito HOT 5
- Enfore that a user's e-mail is verified in Auth0 for accessing an API
- Clarification on Role Based Access Control (RBAC) using firebase auth HOT 1
- cognito: "Validation Error for Claims" - when using custom attributes in cognito HOT 1
- How to catch exception or change the Scope not matched message
- Simple Auth0 authentication when using the doc or redoc page
- [Cognito] App client_id is not validated for Cognito JWT (access_token)
- Take lot of time to start a fastapi project
- Having trouble figuring out "next steps" HOT 1
- How can I get the groups/scopes a user is associated in Cognito? HOT 1
- Feature: Add scopes required to the openapi docs
- How can we make it possible to enable Authentication for Websockets?
- how to add google login?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-cloudauth.