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

Custom LinearLayoutManager android
How to call a method after text complete in edit text in Android
Android Studio “Waiting for debugger” hangs, only on certain project
Couldn't read row 0, col 12 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it
What threading method can I use for reading long text files in Android?
how to make notification in receiver
Why is buffer return null in this example?
how to reset the NavigationView scroll position
How to display a math formula in an Android app?
Creating a database that can work with Web/iOS/Android
Good tool to check data consumed by a POST request for a mobile app?
What is the asp.net web api for image upload from Android (Retrofit)?
How to populate data dynamically into the Spinner from the server?
NetworkOnMainThreadException Firebase Crash
Kotlin data class with derived properties
Using ViewPager with fragments

Categories

HOME
windows
go
adal
twig
serialization
components
socket.io
cublas
maxscript
zip
jetty
barcode
bing-maps
extjs4.2
fosrestbundle
cmdb
shared-libraries
aws-sdk
google-data-studio
articulate-storyline
squashfs
jquery-ias
pagespeed
draft-js-plugins
dapper-extensions
expressionengine3
flooding
bringtofront
finagle
volatile
simplecv
video-capture
apiary.io
bc
health-monitoring
google-data-api
stringtokenizer
knime
wc
facebook-social-plugins
x++
geotiff
video-conferencing
rxtx
reachability
vcloud-director-rest-api
materialized-path-pattern
docpad
flex-monkey
seek
expectations
qiime
angular-ui-typeahead
yajsw
design-principles
crouton-os
sciruby
ons-api
cryptographichashfunction
uncaught-typeerror
nsmenu
rcaller
malformedurlexception
memset
windows-embedded-standard
model-driven-development
neos-server
jquery-1.9
iboutlet
box2d-iphone
google-maps-mobile
appledoc
instantiationexception
web-garden
mathematical-notation
visualj#
perl5.12

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