stealthycoin / chalice-cognito-auth Goto Github PK
View Code? Open in Web Editor NEWAuth lib for Chalice cognito authentication.
Auth lib for Chalice cognito authentication.
I am having the same issue as @thetestgame @stealthycoin do you know what we are missing? I have tried rebuilding virtual environments, and upgraded and downgrading dependencies but I am not longer able to chalice deploy without getting environmental variable errors.
I'm sure I'm doing something wrong, but when I deploy the basic example from the readme.md I'm able to execute login and get a token back, but when I try the /whoami route it throws the following exception:
[ERROR] Runtime.ImportModuleError: Unable to import module 'chalice_cognito_auth.blueprint': cannot import name 'BlueprintFactory' from 'chalice_cognito_auth.blueprint' (/var/task/chalice_cognito_auth/blueprint.py)
I've tried a few things such as moving the library into vendor/ and using the latest github version to no avail. Any pointers to what might be wrong would be helpful. My chalice --version output is chalice 1.12.0, python 3.7.3, darwin 19.0.0
The deploy process causes an error with the following code raising a MissingEnvironmentVariableError before its even deployed
user_pool_handler = chalice_cognito_auth.default_user_pool_handler()
app.register_blueprint(user_pool_handler.blueprint)
I am successfully able to invoke login endpoint and get the response for an app client without secret, however if I use the app client with secret, then, it gives me following error:
{
"Code": "UnauthorizedError",
"Message": "UnauthorizedError: Unable to verify secret hash for client "
}
I went through the documentation as well as code, but couldn't find the way to send app client secret. There should be some way to achieve the same. Please let me know if i am missing anything.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.