Optional Features >> Disable sessions for web api
Gastón Salomone
10-3-24
Operating system: macOS
Hi,

I cannot find any information on about this feature on hansamanual.

That is the purpose, is it working, how it works or how must be configured to work ?

For REST API many web request per second could occure, if customer database has reach the limit of logged users using client Software for a moment, all web requests, including RESTAPI fail with unauthorized access using Basic authentication. User and password provided is OK but as soon any user logout web request works perfectly.

All web request require user space to login and read data ?
It there any way to configure SERP just to validate login information, but not consume a user session ? At least for reading data.

How someone could help me with information on this matter.

Thanks
Carolina Valentino
10-9-24
Thanks Gaston, someone of the team ll answer you
10-10-24
Hey!

What is the user type you are using for API calls? Is it concurrent?
Gastón Salomone
10-10-24
Hi,

These are the specs:

SERP version is 8.5 2024-04-17 (build 85554577)
2 concurrent users, No Nomminal users in contract
3 concurrent users created in DB, 1 for using throught REST API

Scenario:
Only User1 connect, RESTAPI request some data, everything ok
User1 and User2 connect, RESTAPI request some data, Unothorized access status error received.
User2 logout, RESTAPI request some data, everything ok

I´m using POSTMAN to do test.
Ive made test with and without Optional Features >> Disable sessions for web api, checked.
Both using basic authentication and OAuth

Seems that once User limit is reached on logged users using client SERP, no more RESTAPI request can b made.



10-11-24
Sorry - I think I initially misunderstood your question...
Yes - using REST API needs to have a user and a free user space.
If you use a named user - that user has to be dedicated to the API (or ensure that readings are done when the user is not logged in to the system).
If the readings are done with a concurrent user - same idea - there has to be a space for the connection.
REST API usage is considered the same as user - just as if you would log in to the system and read / write the data yourself.
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
Piotr Wycichowski
Thanks. Finally it occurred certificate problem on mail server. Weird is that the older version of SERP (2021-04-18) was able to sent mail using this server, while newer - not. Suddenly one day our SE...
11:43 22 Oct 2024
Gatis Jansons
On top of having the custom register added to the interface (register's LClass defined for a specific module in Startup).. interface languages matter as well. Make sure to add the custom regis...
10:41 16 Oct 2024