cancel
Showing results for 
Search instead for 
Did you mean: 

Check logon token expiry using sap webi rest service

Former Member
0 Kudos

Hi,

We have web application in which we have integrated sap bo 4.1 webi report using opendocument url. In opendocument url we are passing logon token which is generated with help of sap rest service.

Suppose if logon token get expired, it redirects us to sap webi login page. so do we have any option in sap restful service to check that logon token has expired or not.

Thanks,

Ajay Singh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ajay,

As you have application, you can validate the session or token. just try to use same token and if you get status code 401 the session is expired. So here using Status code you can determine whether session is valid or not.

Regards,

Kedar Kale.

Former Member
0 Kudos

Hi Kedar,

Thanks for reply.

Right now I am generating logon token and concating that logon token in opendocument url and after that I am setting that url to iframe of webpage.

But if token got expired it automatically redirects us on sap bi login page as it is hard to get status 401 after redirect. As you said we will get status code 401 on token expired, could you please suggest which rest url we can hit with token to get this status code.

Thanks,

Ajay Singh

former_member197386
Active Contributor
0 Kudos

Hello Ajay,

You could hit any protected RESTful URLs, if your token is expired, you will receive a 401 http error code.

Regards,

Anthony

Answers (0)