Coder Social home page Coder Social logo

Comments (5)

klaytaybai avatar klaytaybai commented on June 14, 2024

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.

ghendo avatar ghendo commented on June 14, 2024

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.

tachyon1337 avatar tachyon1337 commented on June 14, 2024

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.

assyadh avatar assyadh commented on June 14, 2024

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.

assyadh avatar assyadh commented on June 14, 2024

Resolving, feel free to reopen if you have any other questions

from aws-aspnet-cognito-identity-provider.

Related Issues (20)

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.