Saturday, January 9, 2016

OAM 11gR2PS3 - REST - Out Of The Box Oracle Access Manager (OAM) Authentication Token Service

Authenticate (Login):
curl -i -H "Content-Type: application/json" --request POST http://:/oic_rest/rest/oamauthentication/authenticate -d '{"X-Idaas-Rest-Subject-Type":"USERCREDENTIAL","X-Idaas-Rest-Subject-Username":"testuser","X-Idaas-Rest-Subject-Password":"Password1","X-Idaas-Rest-New-Token-Type-To-Create":"USERTOKEN"}' 

Validate:
curl --request GET http://:/oic_rest/rest/oamauthentication/tokens/info -H "X-Idaas-Rest-Subject: TOKEN d06sDhgayq2UzL4yrG5KE5r8YoS5yuHL5lz603C4yZ96oOWhCb+GPMb8lvyhTZO3/dD/CnisoRPdxTsto2ZBF956uMubdrG4UemNYLwQcJBWqFYFsjyiUTspaVDVYlxOHjsEOTJQBLijw3w0WuXufSKQqq+OqitHbGlNQeeWwDyYiat9emoh64TxdxBkbngC+4hDLCgh+DyoaInxEqHg43Xn2rIMIp6x8DibNjezmKIjPwmxN0ZUnus0zMyDZvuS3SaCc36U48TpLu1LFN4fCn9h68WFES2TpckaYQQhX/SZpF5z+yrE8Kpn8HqWlXOmX4FYP9tJT8fgHdI49bVKQPbCapkA7dqWhKa8e41sbYiR4V735BuD885kdmc9fvsEyognoy9HgwDEun+YlW7OpON6OyrnjmKgun1VK+NYt4+/S7sogkXA9fZtmdIuT1y/Zpd1SYhpsfsf+0kPNeVkkJM4o6aX6Gn9dyUVsbKIdqs3s/4DT8iRHQUmFzgBRwnw"

Delete (Logout):
curl -i -H "Content-Type: application/json" --request DELETE http://:/oic_rest/rest/oamauthentication/tokens/info -d '{"X-Idaas-Rest-Subject-Value":"d06sDhgayq2UzL4yrG5KE5r8YoS5yuHL5lz603C4yZ96oOWhCb+GPMb8lvyhTZO3/dD/CnisoRPdxTsto2ZBF956uMubdrG4UemNYLwQcJBWqFYFsjyiUTspaVDVYlxOHjsEOTJQBLijw3w0WuXufSKQqq+OqitHbGlNQeeWwDyYiat9emoh64TxdxBkbngC+4hDLCgh+DyoaInxEqHg43Xn2rIMIp6x8DibNjezmKIjPwmxN0ZUnus0zMyDZvuS3SaCc36U48TpLu1LFN4fCn9h68WFES2TpckaYQQhX/SZpF5z+yrE8Kpn8HqWlXOmX4FYP9tJT8fgHdI49bVKQPbCapkA7dqWhKa8e41sbYiR4V735BuD885kdmc9fvsEyognoy9HgwDEun+YlW7OpON6OyrnjmKgun1VK+NYt4+/S7sogkXA9fZtmdIuT1y/Zpd1SYhpsfsf+0kPNeVkkJM4o6aX6Gn9dyUVsbKIdqs3s/4DT8iRHQUmFzgBRwnw","X-Idaas-Rest-Subject-Type":"TOKEN"}'

2 comments:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Oracle Access Manager
    , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on in Oracle Access Manager We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: training_maxmunus
    Contact No.-+91-9738507310
    Company Website –http://www.maxmunus.com


    ReplyDelete
  2. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in TECHNOLOGY , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Saurabh Srivastava
    MaxMunus
    E-mail: saurabh@maxmunus.com
    Skype id: saurabhmaxmunus
    Ph:+91 8553576305 / 080 - 41103383
    http://www.maxmunus.com/


    ReplyDelete