I regularly access a web api which uses an access token and refresh tokens for its auth flow.
As an additional layer of security, the access token expires every ten days at which point one must:
- navigate to a url over https
- enter login/ password credentials
- click an "are you sure" button
Then, the browser is redirected to a localhost url (with a 404 code), a portion of which contains the NEW access token, which I've been manually copying/ pasting, eg:
Realizing this onerous procedure is by design, how can I nevertheless automate it? It seems that the redirect is beyond the ability of the
httr package, but I might be doing it wrong.
As I'm dealing with auth credentials and given that I don't know where to start, I don't really have a reprex to offer.
Thank you in advance for any help.