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

Android Splash activity not redirecting after first time setup
How to update Facebook status with Photo using facebook SDK?
RecyclerView duplicating certain UI elements
Facebook Graph API: Paging next newsfeed return data empty
android storing static data
How to make an option fade but still be clickable on Android Studio?
Replace ImageView from PNG to GIF
Android Studio build errors when project is in a subfolder of Github
How to get rid of scroll in listView enenthough there is enough space when given wrap_content?
Send ByteArray with Android volley
Android 4.2 ndk: library loading crash: load_library(linker.cpp:750) || soinfo_link_image || libhoudini.so || opencv
Webview in Android 4.4 logs nativeOnDraw failed
Any android developer here who is using nokia xl?
Simplest way to link/share data between android devices
Transferring funds in an app
change first page of android wear notification

Categories

HOME
uml
nvd3.js
angular-formly
battery
fftw
requirements
opendj
google-cloud-functions
interpolation
pearson-correlation
trac
pkcs#11
drop-down-menu
mautic
ipmitool
stellar.js
searchview
atlassian-stash
firefox-addon
mathprog
database-connection
spring-async
cgbitmapcontext
php-mysqlidb
gmock
bulletphysics
shared
intersystems-cache
rpgle
exchangewebservices
nsurl
wacom
pop3
indy10
baidu-map
xajax
protege4
sql-server-ce
sessionstorage
recurrent-neural-network
health-monitoring
magento-1.9.3
android-softkeyboard
datacachefactory
android-ibeacon
ssrs-2014
plan-9
puredata
flask-restful
azure-cli
libjpeg
jtree
redistributable
pacemaker
latin
async.js
android-dateutils
nullable
beanstalk
oracle-spatial
flock
intel-c++
poppler
dock
batik
ember-cli-rails
pyobjc
git-ftp
bcache
pseudo-class
sonarqube-5.0
paw
matrix-inverse
ice-cube
composite-component
web-notifications
redis-py
zope.interface
httponly
denied
android-holo-everywhere
u2netdk
exponentiation
quotation-marks
tmx
load-time
opml
echo3
strtod
data-mapping
lalr
localizable.strings
fdf

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