Comments (5)
I passed region name to cognito constructor but same exception is coming
from warrant.
You've gotta tell Boto3 what region to use somehow (the region in which your Cognito user pool exists); either by passing it as an argument to Cognito
or AWSSRP
in this library, or setting the AWS_DEFAULT_REGION
environment variable, or defining an AWS config file.
from warrant.
I am having the same issue as @rizwans-cuelogic. Passing the user_pool_region
argument returns an error.
u = Cognito('your-user-pool-id', 'your-client-id', user_pool_region='us-east-1')
Returns this error:
botocore.exceptions.NoRegionError: You must specify a region.
EDIT: I fixed this by passing my AWS access and secret key. Maybe there should be a warning message if no AWS access key or secret key is passed to the constructor?
from warrant.
@atwalsh04 your instance functions are working properly? because in cognito constructor code there is nothing given about AWS access and secret key as parameter.
from warrant.
@faizans-cuelogic Yes, the arguments for this are access_key
and secret_key
.
This line is from the Cognito constructor:
if access_key and secret_key:
self.client = boto3.client('cognito-idp',
aws_access_key_id=access_key,
aws_secret_access_key=secret_key,
region_name=self.user_pool_region
)
else:
self.client = boto3.client('cognito-idp')
If you do not pass these to the constructor, boto3 looks for AWS credentials as defined in the boto3 Credentials Configuration.
from warrant.
Related Issues (20)
- SRP doesn't authenticate reliably with client secret HOT 2
- how to use the access token for http api calls to lambdas with cognito authorisers? HOT 3
- Response has no 'ResponseMetaData' , then this line will throw exception
- OAuth2 Authorization
- COGNITO_JWKS
- Returning Custom Attribute Value HOT 1
- To add 'MessageAction' parameter to admin_create_user
- admin_delete_user should be able to delete any user
- storing id_token and refresh_token in session?
- Is this project unmaintained? HOT 11
- SRP auth fails with NoCredentialsError HOT 5
- Install warrant ERROR HOT 3
- credentials is waiting on stuff HOT 1
- Integrate Poetry with Warrant HOT 1
- Fix Travis CI
- release version > 0.6.1 to Pypi to address import warnings
- Negative salt causes a crash
- CVE-2018-15560
- Support SOFTWARE_TOKEN_MFA challenge in AWSSRP
- Can't access custom attributes 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 warrant.