profile
viewpoint

issue commentaws-amplify/aws-sdk-android

Cognito - Sign In - Error in federating the token

identity pool is must need? Because when I added Identity pool info there is an error happened:

java.lang.RuntimeException: Error in federating the token.
at com.amazonaws.mobile.client.AWSMobileClient$8.run(AWSMobileClient.java:1484)
at com.amazonaws.mobile.client.internal.InternalCallback.await(InternalCallback.java:115)
at com.amazonaws.mobile.client.AWSMobileClient.federatedSignInWithoutAssigningState(AWSMobileClient.java:1414)
at com.amazonaws.mobile.client.AWSMobileClient$6$1.onSuccess(AWSMobileClient.java:1156)
at com.amazonaws.mobileconnectors.cognitoidentityprovider.CognitoUser.getSession(CognitoUser.java:745)
at com.amazonaws.mobile.client.AWSMobileClient$6.run(AWSMobileClient.java:1142)
at com.amazonaws.mobile.client.internal.InternalCallback$1.run(InternalCallback.java:101)
at java.lang.Thread.run(Thread.java:818)
Caused by: com.amazonaws.services.cognitoidentity.model.NotAuthorizedException: Token is not from a supported provider of this identity pool. (Service: AmazonCognitoIdentity; Status Code: 400; Error Code: NotAuthorizedException; Request ID: 3c924e1f-70ea-11e9-80ca-01ad7f96c8b7)
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:730)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:405)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:212)
at com.amazonaws.services.cognitoidentity.AmazonCognitoIdentityClient.invoke(AmazonCognitoIdentityClient.java:1658)
at com.amazonaws.services.cognitoidentity.AmazonCognitoIdentityClient.getId(AmazonCognitoIdentityClient.java:739)
at com.amazonaws.auth.AWSAbstractCognitoIdentityProvider.getIdentityId(AWSAbstractCognitoIdentityProvider.java:172)
at com.amazonaws.mobile.client.AWSMobileClientCognitoIdentityProvider.refresh(AWSMobileClient.java:3600)
at com.amazonaws.auth.CognitoCredentialsProvider.startSession(CognitoCredentialsProvider.java:678)
at com.amazonaws.auth.CognitoCredentialsProvider.refresh(CognitoCredentialsProvider.java:631)
at com.amazonaws.auth.CognitoCachingCredentialsProvider.refresh(CognitoCachingCredentialsProvider.java:510)
at com.amazonaws.mobile.client.AWSMobileClient.federateWithCognitoIdentity(AWSMobileClient.java:1515)
at com.amazonaws.mobile.client.AWSMobileClient$8.run(AWSMobileClient.java:1471)```
And I asked our backend the indentity pool is not for mobile client.
SwiftyWang

comment created time in 3 days

startedcoolmodi/CChatNotifier

started time in 6 days

issue commentaws-amplify/aws-sdk-android

Cognito - Sign In - Error in federating the token

Sorry for the later.

{
  "UserAgent": "aws-amplify/cli",
  "Version": "0.1.0",
  "AppSync": {
    "Default": {
      "ApiUrl": "",
      "Region": "ap-southeast-1",
      "AuthMode": "AMAZON_COGNITO_USER_POOLS"
    }
  },
  "CognitoUserPool": {
    "Default": {
      "PoolId": "",
      "AppClientId": "",
      "AppClientSecret": "",
      "Region": "ap-southeast-1"
    }
  }
}

Currently I am using this one and will have an warning.

    java.lang.Exception: Federation is not enabled, please check if you have CognitoIdentity configured.
        at com.amazonaws.mobile.client.AWSMobileClient$8.run(AWSMobileClient.java:1455)
        at com.amazonaws.mobile.client.internal.InternalCallback.await(InternalCallback.java:115)
        at com.amazonaws.mobile.client.AWSMobileClient.federatedSignInWithoutAssigningState(AWSMobileClient.java:1410)
        at com.amazonaws.mobile.client.AWSMobileClient$6$1.onSuccess(AWSMobileClient.java:1153)
        at com.amazonaws.mobileconnectors.cognitoidentityprovider.CognitoUser$6.onSuccess(CognitoUser.java:814)
        at com.amazonaws.mobileconnectors.cognitoidentityprovider.CognitoUser$27.run(CognitoUser.java:2603)
        at com.amazonaws.mobileconnectors.cognitoidentityprovider.CognitoUser$24.run(CognitoUser.java:2480)
        at com.amazonaws.mobileconnectors.cognitoidentityprovider.continuations.AuthenticationContinuation.continueTask(AuthenticationContinuation.java:124)
        at com.amazonaws.mobile.client.AWSMobileClient$6$1.getAuthenticationDetails(AWSMobileClient.java:1170)
        at com.amazonaws.mobileconnectors.cognitoidentityprovider.CognitoUser.getSession(CognitoUser.java:778)
        at com.amazonaws.mobile.client.AWSMobileClient$6.run(AWSMobileClient.java:1139)
        at com.amazonaws.mobile.client.internal.InternalCallback$1.run(InternalCallback.java:101)
        at java.lang.Thread.run(Thread.java:764)```
SwiftyWang

comment created time in 9 days

issue commentaws-amplify/aws-sdk-android

Cognito - Sign In - Error in federating the token

I checked the mobile client sdk maybe issues happened here

 if (isFederationEnabled()) {
                                    federatedSignInWithoutAssigningState(userpoolsLoginKey, mCognitoUserSession.getIdToken().getJWTToken());
                                }

inside _signIn method. Here isFederationEnabled() always will be true and I cannot find a place to set it false. Anyone can help?

SwiftyWang

comment created time in 22 days

issue commentaws-amplify/aws-sdk-android

Cognito - Sign In - Error in federating the token

@luanalbineli Have you fixed it yet? I have same issue as yours. My awsconfiguration.json is copied from iOS side.

luanalbineli

comment created time in 23 days

issue openedaws-amplify/aws-sdk-android

Cognito - Sign In - Error in federating the token

State your question Exactly same found as https://github.com/aws-amplify/aws-sdk-android/issues/942. I tried to remove the CredentialsProvider and IdentityManager sections then can retrieve accessToken. But have same warning Failed to federate tokens during sign-in java.lang.Exception: Federation is not enabled, please check if you have CognitoIdentity configured.

Any update about this issue?

Which AWS Services are you utilizing? Amazon Cognito Provide code snippets (if applicable) Same as https://github.com/aws-amplify/aws-sdk-android/issues/942 Environment(please complete the following information):

  • SDK Version: com.amazonaws:aws-android-sdk-core:2.15.+ -> 2.15.2 | --- com.google.code.gson:gson:2.2.4 -> 2.8.5 +--- com.amazonaws:aws-android-sdk-mobile-client:2.15.+ -> 2.15.2 | +--- com.amazonaws:aws-android-sdk-auth-core:2.15.2 | | --- com.amazonaws:aws-android-sdk-core:2.15.2 () | +--- com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.15.2 | | +--- com.amazonaws:aws-android-sdk-core:2.15.2 () | | --- com.amazonaws:aws-android-sdk-cognitoidentityprovider-asf:1.0.0 | --- androidx.annotation:annotation:1.0.0 -> 1.1.0 +--- com.amazonaws:aws-android-sdk-appsync:2.8.+ -> 2.8.3 | +--- com.google.code.findbugs:jsr305:3.0.1 | +--- com.squareup.okhttp3:okhttp:3.8.1 -> 3.12.0 () | +--- com.amazonaws:aws-android-sdk-core:2.13.2 -> 2.15.2 () | +--- com.amazonaws:aws-android-sdk-mobile-client:2.13.2 -> 2.15.2 () | +--- com.amazonaws:aws-android-sdk-auth-userpools:2.13.2 -> 2.15.2 | | +--- com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.15.2 () | | --- com.amazonaws:aws-android-sdk-auth-core:2.15.2 () | --- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.1.0 () +--- com.amazonaws:aws-android-sdk-auth-userpools:2.15.+ -> 2.15.2 (*) +--- com.amazonaws:aws-android-sdk-appsync-runtime:2.8.3 | +--- com.nytimes.android:cache:2.0.2 | | --- com.google.code.findbugs:jsr305:3.0.1 | --- com.amazonaws:aws-android-sdk-appsync-api:2.8.3 | --- javax.annotation:jsr250-api:1.0

Device Information (please complete the following information):

  • Device: Any
  • Android Version: Any
  • Specific to simulators: No

created time in 23 days

startedangelolloqui/SwiftKotlin

started time in a month

issue openedchristophrus/CensusPlusClassic

Can we check as a range level?

Say I would like to check 50-60 the races and classes data. Possible to do that?

created time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha a12060faa1fb2081028b485e6e6d2f4b305f04f6

bump to 1.2.1(4)

view details

push time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha eda73c09a8ad583fcc5e969cdc73f95a742fe0cd

change to new admob id

view details

push time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha dce8b822355b5ec5989dd7a9fde70943f3d74cdb

change to new admob id

view details

push time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha 9588c4e0c2303dd5c3df5db262c7b476b903bb2a

change app name

view details

push time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha dbe97199bccd56aab6b7c35e80e3219c4a08b0d0

update app icon

view details

push time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha 03157c0a4e6d52314bf4626d59366ce4ae01a92e

update app id and google json remove android test

view details

push time in a month

push eventSwiftyWang/Github-Web

SwiftyWang

commit sha 51cd867e8737a3e16199a509cadd7dd2af3f18c4

change package name and app name

view details

SwiftyWang

commit sha 6d02bdd540cb6131560bd7770cb0877a6c7e3abd

upgrade gradle and target version to 28

view details

push time in a month

issue openedtanguyantoine/react-native-music-control

When audio start playing. Notification will dismiss.

<!-- Please keep in mind that the more you give detail easier the problem solving is -->

Description

Using XIAOMI 8 to debug. After audio start to play, the notification will disappear.

  1. Sample code (provide repo url or sample code) After debug the Android code of this lib. I find
public void onStop() {
        stopForegroundService();
        sendEvent(context, "stop", null);
}

is been called.

<!-- replace the balnk space within backets by a x so that it checks the box ;-) --> 2. Platform ?

  • [ ] iOS
  • [x] Android

<!-- same here -->
3. Device

  • [ ] Simulator
  • [x] Real device

created time in a month

startednowar-fonts/Nowar-Sans

started time in a month

startedxuexiangjys/XPush

started time in a month

startedInsertKoinIO/koin

started time in 2 months

startedTencent/Shadow

started time in 2 months

startediftechio/iftech-android-slide-layout

started time in 2 months

startedAwesome-HarmonyOS/HarmonyOS

started time in 2 months

startedAeroScripts/QuestieDev

started time in 2 months

startedmarmelroy/PeekPop

started time in 2 months

startedkevin0571/STPopupPreview

started time in 3 months

startedalibaba/Tangram-Android

started time in 3 months

startedalibaba/Tangram-iOS

started time in 3 months

startedchrislgarry/Apollo-11

started time in 3 months

more