Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify Drop-In Auth UI without Cognito Identity Pools #592

Closed
kcwinner opened this issue Nov 29, 2018 · 5 comments
Closed

Amplify Drop-In Auth UI without Cognito Identity Pools #592

kcwinner opened this issue Nov 29, 2018 · 5 comments
Assignees
Labels
closing soon Issue will auto-close if there is no additional activity within 7 days. feature-request Request a new feature mobile client Issues with AWS Mobile's client-side Cognito wrapper pending-community-response Issue is pending response from the issue requestor

Comments

@kcwinner
Copy link

State your question
Is it possible to use the Amplify Drop-In Auth UI without using federated identities? The IdentityManager requires the CredentialsProvider -> CognitoIdentity region to determine the region at initialization.

I only want to use the drop-in UI with userpools and not actually trade in for federated credentials.

FWIW - we have not had this same result with the iOS drop-in UI.

Which AWS Services are you utilizing?
AWS Cognito UserPools

  • com.amazonaws:aws-android-sdk-mobile-client:2.8.+
  • com.amazonaws:aws-android-sdk-auth-userpools:2.8.+
  • com.amazonaws:aws-android-sdk-auth-ui:2.8.+

Provide code snippets (if applicable)
Potentially use something like this for config:

{
    "UserAgent": "aws-amplify/cli",
    "Version": "0.1.0",
    "IdentityManager": {
        "Default": {}
    },
    "CognitoUserPool": {
        "Default": {
            "PoolId": "us-east-1_xxxxxx",
            "AppClientId": "xxxxxx",
            "AppClientSecret": "xxxxxx",
            "Region": "us-east-1"
        }
    }
}

Environment(please complete the following information):

  • SDK Version: 2.8

Device Information (please complete the following information):

  • Device: Pixel XL 2
  • Android Version: Pie 9.0
  • Specific to simulators: N/A
@palpatim palpatim added question General question mobile client Issues with AWS Mobile's client-side Cognito wrapper labels Nov 29, 2018
@palpatim
Copy link
Member

Hi @kcwinner,

I'll let @minbi chime in with a more educated answer, since my knowledge on this is a bit limited. In the meantime, can you confirm my understanding of your question: you want to use drop-in auth for UserPools authentication, without the requirement of setting up a Cognito Identity Pool as a credentials provider, is that right? Would you be able to set up a Cognito Identity Pool to simply stand in during initialization, even if you never use the credentials it provides?

@kcwinner
Copy link
Author

kcwinner commented Nov 29, 2018

Hello @palpatim !

You are correct in your understanding. I would like to use it without setting up an identity pool. A simple workflow of using a jwt for access with APIG or AppSync is where I am headed.

I actually do have an identity pool I could use. It would be easy enough to create a throw away pool and role with no permissions. Just extra overhead and resources if they aren't really useful.

The other option is abandoning the drop-in UI and managing everything myself.

Edit:
Another unrelated issue I found on accident: drop-in UI does not work with AWS::Cognito::IdentityPoolRoleAttachment rolemappings due to using Basic (classic) auth flow. This may already be known was just adding it FWIW

@minbi minbi added pending-release Code has been merged but pending release feature-request Request a new feature and removed question General question labels Dec 5, 2018
@minbi
Copy link
Contributor

minbi commented Dec 5, 2018

Hi @kcwinner ,

We are taking this as a feature request and will look into prioritizing this issue.

@minbi
Copy link
Contributor

minbi commented Dec 6, 2018

Hi @kcwinner ,

We have removed the requirement to have a identity pool for showSignIn in version 2.8.5 of the SDK. Please see if this fixes the issue for you.

@minbi minbi added pending-community-response Issue is pending response from the issue requestor and removed pending-release Code has been merged but pending release labels Dec 6, 2018
@frankmuellr frankmuellr added the closing soon Issue will auto-close if there is no additional activity within 7 days. label Dec 14, 2018
@minbi
Copy link
Contributor

minbi commented Dec 17, 2018

Hi,

We are closing this issue because there has been no activity. Please feel free to open a new issue if the problem persists. We ask this because closed issues are not actively monitored.

Thanks

@minbi minbi closed this as completed Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing soon Issue will auto-close if there is no additional activity within 7 days. feature-request Request a new feature mobile client Issues with AWS Mobile's client-side Cognito wrapper pending-community-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

4 participants