Seeking Advice: Automating OAuth Token Retrieval Using `windows.open()`

GaneshBendkule
Tera Contributor

Hey everyone,

 

I'm currently grappling with a challenge related to automating the retrieval of OAuth tokens within a web environment. The situation involves needing an `oauth_token` via a UI action that triggers the opening of a specific link in the browser. This link looks something like:

 

https://dev182409.service-now.com/oauth_initiator.do?oauth_requestor_context=${oauth_requestor_conte...

 

The catch here is that the process relies on the `windows.open()` function, which can only execute on the client side. Our goal is to acquire the OAuth token for an access token, especially when the current token has expired.

 

I'm seeking guidance on how to achieve this automation and the underlying logic required. Any insights, strategies, or tools that could assist in handling this scenario would be greatly appreciated!

 

Thank you for your expertise!

3 REPLIES 3

Muhammad Salar
Giga Sage

Hello ! Any update on this, did you find any solution ?

 

@Muhammad SalarWe didn't find any solution.

I have a similar situation, the only way around i have found is to navigate to this link from client script, by navigating, same process runs and token will be generated