zalando-stups / zign

Command line client to generate OAuth2 access tokens
http://docs.stups.io/en/latest/components/zign.html
Other
12 stars 12 forks source link

Support OAuth Refresh Tokens #28

Open hjacobs opened 7 years ago

hjacobs commented 7 years ago

We are using implicit flow with refresh tokens --- so support them.

gargravarr commented 7 years ago

Use the provided refresh token to request a new access token, so a browser window is not opened.

hjacobs commented 7 years ago

TODO: manage multiple refresh tokens. @sarnowski proposed to save both the access_token and refresh_token both in tokens.yaml. I think that makes sense.

gargravarr commented 7 years ago

@hjacobs @sarnowski refresh tokens are already saved in tokens.yaml

hjacobs commented 7 years ago

@gargravarr yes, but we need to use the refresh_token in tokens.yaml to support different scopes per token.