REST API login not working on DSpace version 7.4 after upgrade from DSpace 6.2

34 views
Skip to first unread message

Lewatle Johannes Phaladi

unread,
Feb 24, 2023, 6:53:25 AM2/24/23
to DSpace Technical Support
Hi DSpace Team,

I have done numerous test using postman to connect to DSpace 7.4 without luck, when sending request checking status it succeed but when logging in it fails, please see the following screenshots, the first one is the error on our API page and the second one is seccess results from Dspace demo site that I would like to receive, please guide on what to do to solve this problem :

authentication fails.png


authentication success on demo.png

Regards,
Lewatle 

Lewatle Johannes Phaladi

unread,
Feb 24, 2023, 6:54:50 AM2/24/23
to DSpace Technical Support
Please see attachment 
authentication fails.png
authentication success on demo.png

Tim Donohue

unread,
Feb 24, 2023, 5:00:18 PM2/24/23
to DSpace Technical Support
Hi,

That first screenshot shows the error message as :
"405 Only POST is allowed for login requests"

That means that you are calling that "/login" method incorrectly and need to use POST.  Here's the docs on that endpoint which has some examples:

Tim

Reply all
Reply to author
Forward
0 new messages