Comments (5)
Hi @ghendo, I don't think this library supports that right now. Can you tell us more about your particular requirements? There may be other solutions that we could provide some guidance on.
from aws-aspnet-cognito-identity-provider.
Hi @ghendo, I don't think this library supports that right now. Can you tell us more about your particular requirements? There may be other solutions that we could provide some guidance on.
I am doing an application dot net core that has multiple sites in one app and would like to keep the users separate in different pools.
from aws-aspnet-cognito-identity-provider.
If I wanted to use multiple User Pools in my application what would I do to implement that?
Roll a custom abstraction and implementation around the IAmazonCognitoIdentityProvider
in the AWS SDK. The IdentityProvider Client's constructor signature
public AmazonCognitoIdentityProviderClient (string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
doesn't rely on any appclient or userpool settings; those values are set in the request object params in the individual client api calls. So it would be possible to do it consistent with dependency injection but not using the AspNetCore Identity abstraction. The CognitoUserStore relies on an injected UserPool configured in StartUp.
from aws-aspnet-cognito-identity-provider.
Hi,
This is currently not supported. In essence, the Identity membership system is designed to hit one source of data (one SQL database by default).
You could get around this, but you would have to do dual reads for a lot of the manager methods (FindByEmail etc).
Also you would have to do some arbitrage on where you want to do the writes.
as @tachyon1337 commented, one way is to implement your own IAmazonCognitoIdentityProvider and override the different methods we use in the stores layers, but it would be cumbersome. You will also need to do the same with the CognitoUserPool class.
from aws-aspnet-cognito-identity-provider.
Resolving, feel free to reopen if you have any other questions
from aws-aspnet-cognito-identity-provider.
Related Issues (20)
- Ways of supporting social login HOT 2
- Security: Defaults require secrets be published in unencrypted configuration files. HOT 6
- Sample App is nonfunctional for core common use cases and actively misleads users, seems abandoned. HOT 6
- Getting error "Unable to get IAM security credentials from EC2 Instance Metadata Service." while trying to login HOT 4
- AWSCognitoClientOptions doesn't contain a Region property (which is required by AWS) HOT 5
- Use inclusive pronouns in documentation. HOT 2
- Any plans to support .NET 5.0? HOT 4
- Implementing MFA suppression via remembered devices, getting 'Invalid device key given.' exception HOT 6
- Sample not working properly - Unable to get IAM security credentials from EC2 Instance Metadata Service. HOT 3
- Unable to retrieve UserPoolClientId and UserPoolClientSecret form AWS Parameter Store HOT 4
- Ability to reload AWSOptions after ASP.NET Core Lambda Startup HOT 19
- How to retrieve the list of all roles (groups) HOT 3
- AmazonCognitoIdentityProviderClient Usage HOT 6
- RemovePasswordAsync() fails for an unconfirmed user HOT 4
- Sign Out from all "active sessions" HOT 4
- RevokeToken behavior for multiple logins
- Support for External Providers HOT 4
- Check Password for unconfirmed user. HOT 5
- PasswordSignInAsync or CheckPasswordSignInAsync and SignInAsync are not persisting auth cookie User.Identity.IsAuthenticated is false HOT 6
- We can no longer search or find users with this sdk HOT 3
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 aws-aspnet-cognito-identity-provider.