cznethub / dsp

CZNet Hub Data Submission Portal
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Use refresh tokens #50

Open sblack-usu opened 2 years ago

sblack-usu commented 2 years ago

Describe the feature you'd like and what it will do I would like refresh tokens to be used to refresh access tokens before they expire. This will limit how often I will need to login with each repository.

Why is this feature important? Refresh tokens can be used to generate a new access token without a user reauthorizing the application.

Is your feature request related to a problem? Please describe. I'm always frustrated when a user has to manually reauthorize a repository. It is also good for security to regularly refresh access tokens.

Maurier commented 2 years ago

@sblack-usu has this been put in place?

sblack-usu commented 2 years ago

yes

Maurier commented 2 weeks ago

Reopening after reviewing token refresh implementation. I have identified major flaws.

See example OAuth token refresh flow: https://cloudentity.com/developers/basics/oauth-grant-types/refresh-token-flow/