tokusumi / fastapi-cloudauth

Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).
MIT License
323 stars 35 forks source link

Support Multiple clientids for aws cognito #46

Open nraghuveer opened 3 years ago

nraghuveer commented 3 years ago

get_current_user = CognitoCurrentUser( region=region, userPoolId=poolid, client_id=clientid )

Often, we would like to support multiple aws Cognito app clients for a single API. Requesting a feature to support multiple app client ids for the aws Cognito objects.

Maybe something like get_current_user = CognitoCurrentUser( region=region, userPoolId=poolid, client_id=[clientid1, clientid2] )

Minipada commented 3 years ago

I would be interested by this, a naive approach would probably be to keep the data in memory? Also it would be great to do that dynamically and not only at start

nraghuveer commented 3 years ago

I would be interested by this, a naive approach would probably be to keep the data in memory? Also it would be great to do that dynamically and not only at start

what do you mean by "dynamically"?