Automatic reconnection with environment credentials

Advertisement

Aelius Ruivus
Joined:
Posts:
2

Automatic reconnection with environment credentials

Hi team, apologies if this was addressed already, but here's something I wanted to mention for a while:
I use WinSCP with environment variables (credentials file) that I must renew every 12h or so. When I renew the token, I have (or don't know) how to tell WinSCP to refresh it - connection fails, and I need to disconnect and reconnect the session (screenshots attached). In the process, it normally loses the path I was working on (I think it reverts to the path I had open when I last closed the app).
My suggestion is to have this either automatically - in case of expired token, first try to refresh it from the environment, and if it fails, prompt the user to either refresh it or check the connection/configs.
Again, apologies if this is a case of failure to RTFM, but having this changed would go a long way in streamlining my workflow :-)

flow.png

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,062
Location:
Prague, Czechia

Re: Automatic reconnection with environment credentials

Sorry, I'm lost at the "environment variables (credentials file)"?
Do you mean the AWS S3 credentials file?
Do you point to the file using environment variables?
How exactly do you refresh the credentials? Do you update the credentials file?

Reply with quote

Aelius Ruivus

Hi, thanks for the answer, yes, I mean the credentials file, the one at C:\Users\[username]\.aws\credentials
On the Login window, I've selected "Credentials from AWS environment", and then select the profile I want (I use Okta, if it helps).

Reply with quote

martin
Site Admin
martin avatar

Ok, for this scenario, currently the only way to refresh the credentials, is what you are doing already: disconnect and reconnect. I'll see, if more people have problem.

Reply with quote

Advertisement

You can post new topics in this forum