Authenticate/Authorize openMRS session using Postman

Question: I am using postman to authorize my session using REST api http://localhost:8080/openmrs-standalone/ws/rest/v1/session i am passing following arguments in raw json, POST request

{

"username": "admin",
"password" : "Admin123"

}

but still get

{

"sessionId": "EF3362A13628F15D8793E28088BF1F80",
"authenticated": false

}

please help me to authorize thank you! **

hello @meullah your welcome to the community …

i don’t know why your doing a POST request because currently i don’t see a resource handler for session .With that said i would suggest you do a GET request instead to the REST api

1 Like

hello @gcliff, Thanks for your help. i am really happy that this community is active and helping. @gcliff please keep helping me in future problems also. stay blessed.

2 Likes

You’re wlcome @meullah, and thanks big @gcliff for your outstanding attention to our needs whenever a hand is raised for help. All community members nonetheless deserve the same credit. So, big-up. :muscle:

1 Like