-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
Language and Async Model
Kotlin
Amplify Categories
Authentication
Gradle script dependencies
// Put output below this line
def amplify_version = "1.37.5"
def amplify_kotlin_version = "0.21.0"
implementation "com.amplifyframework:core:$amplify_version"
implementation "com.amplifyframework:aws-api:$amplify_version"
implementation "com.amplifyframework:aws-api-appsync:$amplify_version"
implementation "com.amplifyframework:aws-auth-cognito:$amplify_version"
implementation "com.amplifyframework:aws-datastore:$amplify_version"
implementation "com.amplifyframework:aws-storage-s3:$amplify_version"
implementation "com.amplifyframework:core-kotlin:$amplify_kotlin_version"
implementation "androidx.browser:browser:1.4.0"
Environment information
# Put output below this line
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
When a user installs the app, he is able to login using Microsoft by entering email and password. But when the user is logged out and tries again to login, signInWithSocialWebUI doesn't let the user enter email and password, it just automatically logs in with the previous account.
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Amplify.Auth.signInWithSocialWebUI(provider, requireActivity(),
{
result ->
session.isSsoLogin = true
session.loggedInEmailId = email
authViewModel.fetchTokenAmplify()
},
{
error ->
Log.e("AuthQuickstart", "Sign in failed", error)
}
Log output
// Put your logs below this line
amplifyconfiguration.json
{
"UserAgent": "aws-amplify-cli/2.0",
"Version": "1.0",
"api": {
"plugins": {
"awsAPIPlugin": {
"ap-qa-api": {
"endpointType": "GraphQL",
"endpoint": "https://*********4.appsync-api.us-east-1.amazonaws.com/graphql",
"region": "us-east-1",
"authorizationType": "AMAZON_COGNITO_USER_POOLS",
"apiKey": "da2-dwmairjnb5c2jibyqy6hfjeivi",
"realtimeEndpoint": "wss://*********4.appsync-realtime-api.us-east-1.amazonaws.com/graphql"
}
}
}
},
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "aws-amplify/cli",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
},
"AppSync": {
"Default": {
"ApiUrl": "https://*********4.appsync-api.us-east-1.amazonaws.com/graphql",
"Region": "us-east-1",
"AuthMode": "AMAZON_COGNITO_USER_POOLS",
"ClientDatabasePrefix": "ap-qa-api_AMAZON_COGNITO_USER_POOLS",
"realtimeEndpoint": "wss://*********4.appsync-api.us-east-1.amazonaws.com/graphql"
},
"ap-qa-api_API_KEY": {
"ApiUrl": "https://*********4.appsync-api.us-east-1.amazonaws.com/graphql",
"Region": "us-east-1",
"AuthMode": "API_KEY",
"ApiKey": "da2-*************",
"ClientDatabasePrefix": "ap-qa-api_API_KEY",
"realtimeEndpoint": "wss://*********4.appsync-api.us-east-1.amazonaws.com/graphql"
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "us-east-1_vP0W8cs8h",
"AppClientId": "***********",
"Region": "us-east-1"
}
},
"Auth": {
"Default": {
"OAuth": {
"WebDomain": "ap-wdfwef-****.auth.us-east-1.amazoncognito.com",
"AppClientId": "*****************",
"SignInRedirectURI": "assetpanda://sign-in",
"SignOutRedirectURI": "assetpanda://sign-out",
"Scopes": [
"aws.cognito.signin.user.admin",
"email",
"openid",
"phone",
"profile"
]
},
"authenticationFlowType": "USER_SRP_AUTH",
"socialProviders": [],
"usernameAttributes": [
"EMAIL"
],
"signupAttributes": [
"EMAIL"
],
"passwordProtectionSettings": {
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": [
"REQUIRES_LOWERCASE",
"REQUIRES_UPPERCASE",
"REQUIRES_NUMBERS",
"REQUIRES_SYMBOLS"
]
},
"mfaConfiguration": "OPTIONAL",
"mfaTypes": [
"TOTP"
],
"verificationMechanisms": [
"EMAIL"
]
}
}
}
}
}
}
GraphQL Schema
// Put your schema below this line
Additional information and screenshots
No response
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists