Comments (7)
Hi @devireds thanks for using the plugin. Can you please give some context and post the error message? Also, the code you posted seems to have few indentation errors, generally you can format it enclosing it between ```python
and ```
from flask-awscognito.
Hi @devireds thanks for using the plugin. Can you please give some context and post the error message? Also, the code you posted seems to have few indentation errors, generally you can format it enclosing it between ```python
and ```
Thank you for the quick response @babaMar I have updated my comment with proper formatting and the error message. Appreciate your help!
from flask-awscognito.
Hi @devireds thanks for using the plugin. Can you please give some context and post the error message? Also, the code you posted seems to have few indentation errors, generally you can format it enclosing it between
python and
Thank you for the quick response @babaMar I have updated my comment with proper formatting and the error message. Appreciate your help!
Guess you have installed with pip
? Because the get_user_info(...)
has been recently added and the PyPi release does not include that. If that's the case cloning the project would solve the issue
from flask-awscognito.
Hi @devireds thanks for using the plugin. Can you please give some context and post the error message? Also, the code you posted seems to have few indentation errors, generally you can format it enclosing it between
python and
Thank you for the quick response @babaMar I have updated my comment with proper formatting and the error message. Appreciate your help!
Guess you have installed with
pip
? Because theget_user_info(...)
has been recently added and the PyPi release does not include that. If that's the case cloning the project would solve the issue
Thank you. Yes, I did install the package using pip. Will try to clone the project and update the outcome.
Also, I assume that you are using this plugin in your app. How are you maintaining the session? Are you string the access_token on client side and passing it every time or using any cookie mechanism?
from flask-awscognito.
Which session specifically?
We use it by instantiating it aws_auth = AWSCognitoAuthentication()
and then decorating the endpoints with @aws_auth.authentication_required
. After that, cognito_claims
are made available in the Flask request context g
by g.cognito_claims
from flask-awscognito.
@devireds let me know if I can close the issue
from flask-awscognito.
Uninstalling the pip package and cloning the project did the thing. Thanks for the quick pointer.
My application architecture:
Once we get the the access_token from Cognito, how do we store the access-token so that the user can send the token with in the subsequent requests?
Thank you!
Which session specifically?
We use it by instantiating it
aws_auth = AWSCognitoAuthentication()
and then decorating the endpoints with@aws_auth.authentication_required
. After that,cognito_claims
are made available in the Flask request contextg
byg.cognito_claims
from flask-awscognito.
Related Issues (10)
- difference between master and published package in PyPi HOT 2
- Integration with Identity Pool
- Latest Version update
- Maintainers Needed HOT 1
- Refresh Token flow HOT 1
- DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.3
- How are you consuming the access token in the frontend? HOT 1
- Can we use this library with a Cognito client with no "Client Secret"? HOT 1
- Custom domain doesn't work HOT 1
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 flask-awscognito.