amplify-swift icon indicating copy to clipboard operation
amplify-swift copied to clipboard

Missing CognitoUserPools AuthProvider in API

Open fjnoyp opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

In Amplify Android API I can provide Cognito User Pool information via a CognitoUserPoolsAuthProvider. While Amplify iOS supports AuthProviders it does not have one for CognitoUserPools.

Describe the solution you'd like

Amplify iOS should have a CognitoUserPoolsAuthProvider that I can provide as an AuthProvider in the API constructor.

Describe alternatives you've considered

The only alternative is to add the Auth category and have Amplify iOS get the Cognito user pool information from there.

Is the feature request related to any of the existing Amplify categories?

API

Additional context

It appears that Amplify iOS crashes if Amplify Auth module is not added with API module. Ideally this shouldn't happen as Android does not crash in this instance. Furthermore, the AuthProviders can give all necessary Auth information without one needing to add the Amplify Auth module anymore ...

fjnoyp avatar Apr 11 '22 19:04 fjnoyp

Thanks for opening this feature request @fjnoyp. We'll update here with any developments.

atierian avatar May 27 '22 13:05 atierian

Hi @fjnoyp, could you provide a more detailed example of the Android DX? This will help us translate it over to iOS and see what APIs iOS is missing. We should also update the documentation for these use cases in https://docs.amplify.aws/lib/graphqlapi/authz/q/platform/ios/#oidc

lawmicha avatar Dec 27 '22 20:12 lawmicha

Amplify Swift has Cognito User Pool as one of the auth provider as mentioned here - https://docs.amplify.aws/lib/graphqlapi/authz/q/platform/ios/#amazon-cognito-user-pools . @fjnoyp does this work for your use case?

royjit avatar Feb 24 '23 20:02 royjit