Giter VIP home page Giter VIP logo

Comments (7)

babaMar avatar babaMar commented on June 9, 2024

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.

devireds avatar devireds commented on June 9, 2024

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.

babaMar avatar babaMar commented on June 9, 2024

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.

devireds avatar devireds commented on June 9, 2024

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

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.

babaMar avatar babaMar commented on June 9, 2024

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.

babaMar avatar babaMar commented on June 9, 2024

@devireds let me know if I can close the issue

from flask-awscognito.

devireds avatar devireds commented on June 9, 2024

Uninstalling the pip package and cloning the project did the thing. Thanks for the quick pointer.

My application architecture:

Application

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 context g by g.cognito_claims

from flask-awscognito.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.