Timeout Session on the Now Mobile App?

John V
Tera Contributor

Hello all, 

We are trying to setup an auto logout feature for the Now Mobile app. We would like end users to have to re-authenticate every X days for security requirements and such. It would appear that for the Classic and Agent mobile apps, there are corresponding OAuth tokens in System OAuth > Application Registry. These tokens can be reset every X seconds so that the user has to login after X seconds of inactivity. The docs, make it seem like there should be an OAuth token for each of the mobile apps. 

However, I do not see an OAuth token for the Now Mobile app. Does anyone have any insight on how to set this up? Shouldn't it have been installed when we downloaded the Now Mobile plugins? Is it even possible to set this up currently?

Thank you in advance!

1 ACCEPTED SOLUTION

BryanS413339635
Tera Guru

I'm not 100% certain, but I think in Application Registry the one you want for Now Mobile is called ServiceNow Request. There is a separate entry for Now Agent. Then within the selection you can change the token lifespans.

 

If my reply has helped in any way, kindly mark it correct/helpful. Thanks!

View solution in original post

7 REPLIES 7

sachin_namjoshi
Kilo Patron
Kilo Patron

This is not available currently with NOW Mobile App.

You can use Oauth token for Native Mobile apps as per below article.

 

 

Regards,

Sachin

BryanS413339635
Tera Guru

I'm not 100% certain, but I think in Application Registry the one you want for Now Mobile is called ServiceNow Request. There is a separate entry for Now Agent. Then within the selection you can change the token lifespans.

 

If my reply has helped in any way, kindly mark it correct/helpful. Thanks!

Thanks for your help, I believe you are correct that the ServiceNow Request token can be used to limit session length for the mobile app. By setting that ServiceNow Request's refresh and access token length to 30 minutes, and the system property glide.ui.session_timeout to 30 minutes, I was able to successfully sign the user off after 30 minutes of inactivity.

It is worth noting that the other responses to my question that mention KB0622335 talk about an ServiceNow Mobile App token record that I did not see in my oauth_entity table. 

Josh24
Tera Contributor

I'm not sure what it would have been called 9 months ago but in Paris Patch 7b you are looking for "ServiceNow Agent" for the Mobile Agent app in the app registry table.