Rest API authentication
1-29-19
Hi

I am trying to get data out from SERP using the standard rest api on 8.4.

We run SERP 8.4 on our Linux Server. When i test the endpoints in the browser, this end point https://MYSERPSERVERIP/api/3/CompaniesBlock returns xml data without any problems. When i try https://MYSERPSERVERIP/api/3/SDVc or any other register, it requests for a username and password. I have tried to enter my standard ID and password with no luck. I know for sure that my standard ID works because i can login to the server with it via a client.

In access groups i have full permissions to the registers that i want to access. A also have the action for rest api set to full access. I have also ticked Web rest API and Allow Basic HTTP Authentication in System >> Settings >> Optional Features.

Can someone explain to me where the access credentials can be set or modified so that when i make a call to say for example https://MYSERPSERVERIP/api/3/SDVc i can be able to login and get data send back to me.
Paul Timms
1-30-19
Are you set up in company 3 with a Person record? Or are you a Global User only? I'm not sure if this makes a difference but it's worth checking. CompaniesBlock is a global block, independent of the company number.
Aldevinas Katkus
1-31-19
Can you login into the 3rd company with your Standard ID? We had some login issues until we hadn't validated user emails in all companies (Persons>>create menu>>check email address)
1-31-19
Created byPaul Timms16:51 30 Jan 2019
Are you set up in company 3 with a Person record? Or are you a Global User only? I'm not sure if this makes a difference but it's worth checking. CompaniesBlock is a global block, independent of the company number.
Yes I am a person in company 3.
1-31-19
Created byAldevinas Katkus09:10 31 Jan 2019
Can you login into the 3rd company with your Standard ID? We had some login issues until we hadn't validated user emails in all companies (Persons>>create menu>>check email address)
Yes I can login to company 3 with my Standard ID via the SERP client.
1-31-19
Created by14:29 31 Jan 2019
Yes I can login to company 3 with my Standard ID via the SERP client.
My email address is also validated successfully when i run the check.
Aldevinas Katkus
2-1-19
what exactly is "when I try https://MYSERPSERVERIP/api/3/SDVc or any other register, it requests for a username and password"?
How can you see that OAuth it asks for password? OAuth just replies with some code such as "server_error" or smth.

Try to play in google OAuth playground and you should see what happens.
I have no problems getting data via OAuth, except some registers can cause server crash (already reported as a bug)

2-5-19
Created byAldevinas Katkus16:01 1 Feb 2019
what exactly is "when I try https://MYSERPSERVERIP/api/3/SDVc or any other register, it requests for a username and password"? How can you see that OAuth it asks for password? OAuth just replies with some code such as "server_error" or smth. Try to play
Dear Aldevinas

I am trying to test if I can pull data directly from Hansa via the browser through the standard rest API. Before we can even talk of OAuth, what i want is that if I type this end point https://MYSERPSERVERIP/api/3/SDVc in the browser, it must return the register's data.

Cant I pull data straight from Hansa using the standard API via the browser without using OAuth? My understanding is that OAuth will go to mystandard to check my client ID and secret and then use that to authenticate into my Hansa. But can I not directly request data from Hansa without using OAuth using the standard API?


Do you have a skype id so that I can explain to you better with screenshots.
Aldevinas Katkus
4-12-19
Created by16:35 5 Feb 2019
Dear Aldevinas I am trying to test if I can pull data directly from Hansa via the browser through the standard rest API. Before we can even talk of OAuth, what i want is that if I type this end point https://MYSERPSERVERIP/api/3/SDVc in the browser, it
This is an old question, anyway:
1. You CAN NOT fetch data via rest api version 2 using browser, but you can do that with rest api version 1.

2. Version 8.5 currently does not return anything if you try to fetch data via Rest API v2 using browser, version 8.4 used to return an error.

I can fetch data in both versions of Rest API with no problems.
My skype id is ex_expert.
Swati D.
12-18-19
Hi there
Do you still need help with this?

Please advise

Swati
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Hi, Thank you for the question! Default value if blank is no max limit for web users nor web sessions. Recommendation depends on server performance that you are running your Standard ERP envir...
07:59 22 Apr 2024
Hi, Thank you for reaching out! What error do you get in server log and client log when you run the report? Please check that you have Multi Thread activated in Systems>>Settings>>O...
09:10 15 Apr 2024