Oauth2 - api workings for unattended processes / refresh? / long lived?

Hi,
as always i am late to the party - this time oauth2 - I guess i got it working for a process of mine - registering an application, authenticating - requesting a token etc etc. I do now have a token.

Now - i have cron jobs running asking for e.g. OSM Notes (And updateing them). Now the tokens i am able to request have a 1 hour expiration time and are not refreshable.

I am little puzzled on how this should work. As in “I have to reauthenticate every hour with cut’n’pasting urls from remote machines”?

I guess there is a way to get “no expiry tokens” or at least refreshable tokens or something.

Flo

Ah - sorry for the noise - the Perl LWP::Authen::OAuth2 confused me as asking for expire time it returns a value not represented in the token.

So my guess is the Lib just makes up some expiration time.

1 Like

Currently, all tokens generated by the OSM server never expire.

2 Likes