android


Getting “User is not authenticated” exception in cognito


I have registered one user using AWS Cognito android SDK. I am login with user on one device and I am able to fetch all the attributes of the user.But when I log in with same user on different device it gives me CognitoNotAuthorizedException (user is not authenticated message) and I am not able to fetch the attributes.
I have checked on Cognito user pool and the user has been registered and confirmed also phone number has been verified.Is there any version specification for getUserDetails() method which I am missing.I also ran signup/login/forgot password functionality on second device and all are working fine except getUserDetail.Below Code I am using for getting user details.
private void getDetails() {
AppHelper.getPool().getUser(mUsername).getDetailsInBackground(detailsHandler);
}
GetDetailsHandler detailsHandler = new GetDetailsHandler() {
#Override
public void onSuccess(CognitoUserDetails cognitoUserDetails) {
AppHelper.setUserDetails(cognitoUserDetails);
}
#Override
public void onFailure(Exception exception) {
showDialogMessage(getString(R.string.could_not_fetch_user_data), AppHelper.formatException(exception), true);
}
};

Related Links

Update LatinIme(AOSP) to LatinImeGoogle through OTA
How to get CallLog.Calls.CACHED_NAME without name suffix and prefix?
On notification button click intent starting new activity instead of resuming
Android animation pivot issue
How can i place dynamic image view over texture view?
DisplayManagerCompat doesnt show available displays for connect via miracast
Link app name or a text to app Link in google play market
Ibeacons sending notification when Android device comes in specific range
Restrict my own webview to use internet
Method to create a Tournament Bracket on Fragment
Call shell command after asm file generation in cmake
I can't populate image view using Glide in Firebase recycler view
How to send Android Google Maps JSON location to RESTful web service
ErrorDialogManager in EventBus GreenRobot
How to make the layout_weight work the same for API18-19 as for the other API levels?
In android v.6 there is an app called ' FotaProvider ' in settings - is this a security issue?

Categories

HOME
jmeter
twig
powerpoint
pascal
aws-cli
cq5
ado.net
jetty
missing-data
mvc5
opengl-3
nstableheaderview
dkim
distribution
java.util.logging
jsonpath
frequency-distribution
dynatrace
do-while
gruntfile
job-scheduling
charles
google-maps-autocomplete
imagemap
dataflow-diagram
roslyn
imageresizer
object-storage
fable-f#
motion-detection
amazon-quicksight
firebase-analytics
bioinformatics
sqlpackage
corenlp-server
xbox
jbutton
instantiation
openerp-7
playframework-2.1
css-position
jvmti
laravel-elixir
berkeley-db-je
memory-mapping
optimizely
xbmc
user-defined-fields
insight
structuremap4
branch-prediction
restore
cronexpression
preprocessor
envi
resourcemanager
mta
scaffolding
simevents
refinerycms
mediametadataretriever
query-by-example
gcloud-ruby
hadoop-partitioning
findfirst
phpgrid
assertion
jdi
pax-exam
slash
finalbuilder
liquid-layout
mirror
uvc
beatsmusic
addressing-mode
contrast
paw
codeplex
reflector
jquery-slider
vbe
gae-quotas
kogrid
cffile
cnf
resource-management
device-width
mkv
wcf-configuration
iboutlet
correlated-subquery
floating-point-exceptions
agility.js
convention
fsevents
catransform3d
binomial-heap
lxr
mathematical-notation
dsoframer
blind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App