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

Database Structure Differences between Web & Mobile Development
Wierd action bar tabs
I m trying to get a map through this code using osmodroid but only grid appears but not the map
Show default Bluetooth pairing request dialog
Unable to resolve host “url” :No address associated with hostname
How can i read gzip which was came from server as http response
How to implement setOnItemClickListener on ListView while accessing listview row(Accessing individual Row)?
Android tablet browser select box height compatibility issue
How to implement alert dialog box?
Passing “null” as DialogInterface.OnClickLIstener legit?
android: how to change property of layout_gravity of a row_item in a listview
Create listview in another activity
How to convert UTF-8 to its corresponding languages in android
How to change the ringing state of android phone?
Caching text and images using Volley library
Android ACTION_BOOT_COMPLETED called everytime?

Categories

HOME
windows
checkstyle
deep-learning
fuelux
awk
merge
c99
jmeter
3d
static
components
mstest
bitbucket-api
edge
alsa
3d-reconstruction
azure-container-service
project-intu
activecollab
automatic-ref-counting
gource
plink
null-pointer
aws-sdk
asp.net-mvc-viewmodel
gmm
microsoft-ocr
cgbitmapcontext
dpdk
backpack-for-laravel
gmock
definitelytyped
genexus-sd
quantlib
cppreference
postback
paragraph
dumpbin
catch-unit-test
code-snippets
linkedhashmap
python-import
xajax
sim-toolkit
apic
salesforce-communities
openalpr
magento-1.9.3
branching-and-merging
preloader
berkeley-db-je
snapchat
pom.xml
wcftestclient
reportservice2010
aquamacs
reindex
semantic-logging
modelsim
filehandle
jqchart
check-mk
pybrain
usart
grails-plugin
hadoop-2.7.2
google-cloud-console
signalr.client
wso2developerstudio
pre-build-event
jtwig
angular-ui-typeahead
data-protection
createprocess
concept-insights
directdraw
grgit
django-urls
atoi
dulwich
mirror
pyobjc
telepat
nodelist
addressing-mode
sip-server
unix-socket
mobility
dot42
synapse
high-resolution
notorm
windows-phone-8-sdk
rolify
kogrid
scringo
gpars
nebula
dolby-audio-api
http-status-code-410
asplinkbutton
android-sdk-2.3
sqlclr
android-loadermanager
tree-balancing
veracity
wcf-configuration
pinch
google-ajax-api
cgbitmapcontextcreate
http-daemon
unattended-processing
socketserver
zend-rest
tabpanel
firefox-3
business-model
dsoframer

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