django


OpenAM oAuth 2.0 authentication failed


I am building a project with OpenAM as access manager and using django oauth2 for authentication. I created an oAuth2 module instance in OpenAM that uses Authentication APIs of my django project.
Authentication Endpoint URL and Access Token Endpoint URL work perfectly fine, but the final URL that fetches User Profile gets a 200 status response from the API but OpenAM shows 401 Authentication Failed.
My response for User profile service URL is:
{'response': {'email': 'abc#abc.com', 'first_name': 'abc', 'last_name': 'def',
'id':'user1', 'name': 'abc def'}, 'error': ''}
My account mapper is org.forgerock.openam.authentication.modules.common.mapping.jsonAttributeMapper and scope is "email".
Please help what can be wrong in this.
In logs I get AUTHENTICATION-268 error which means "Module is not registered/configured under realm or Incorrect/invalid credentials presented or User locked out/not active". But as per my understanding all these are fine.

Related Links

Django - Internationalization won't work
Querying a Django model with ForeignKey and ManyToMany
How can I force Django to create test database with a certain collation?
Make Django form results editable
Django Admin Interface Add Filter on Foreign Key
How to reset the sequence for IDs on PostgreSQL tables
Django: Category List - view's
Using Django/Grappelli on Google App Engine causes Javascript error on list views in admin
Django annotate is generating an incorrect GROUP BY statement
django template arguments and outer joins
Django admin add custom button in change form depending on a form field value
Django adding a feedback form on every page
Is there a standard way of replacing urlpatterns with view decorators in django?
Django queryset to return first of each item in foreign key based on date
Django - How to get self.id when saving a new object?
django-registration vs scratch registration implementation for admin-activated accounts

Categories

HOME
windows
apache-flink
pda
twig
battery
oracle-apex-5
owl-carousel
sublimetext
rendering
alarm
xbee
modal-dialog
commonjs
java.util.logging
ycsb
gkturnbasedmatch
selectize.js
red5
jersey-1.0
pyramid
swagger-2.0
symbols
poedit
kendo-mobile
hta
maze
soot
tpm
sinch
xbox
mockjax
r-grid
catch-unit-test
joomla2.5
hivemq
android-augmented-reality
numberpicker
bindingnavigator
monkey-testing
serde
configurationmanager
vugen
corruption
stdmap
context-sensitive-grammar
backbone-collections
android-testing
quicktime
flyout
offline.js
stripe-connect
mapxtreme
aurora
pushbots
httpruntime.cache
jaunt-api
boomerang
vigenere
lazybones
ess
morton-number
intel-c++
.bash-profile
sony-lifelog-api
ember-cli-rails
sql-server-data-tools
node-serialport
ejb-2.x
at-job
boost-program-options
sonarqube-5.0
device-tree
human-computer-interface
create.js
jquery-slider
ora-06550
sphinxql
inputmismatchexception
mbunit
jquery-1.9
android-icons
video-codecs
superscrollorama
virtual-pc
apache-abdera
joomla3.1
patricia-trie
paginator
lambdaj
screen-size
django-paypal
resharper-6.0
delimited-text
vs-android
maven-1
sun
asynchronous-wcf-call
int64

Resources

Encrypt Message