oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

Direct support for 'expires_at' key when constructing AccessToken

Open sheharyarn opened this issue 6 years ago • 4 comments

Currently the AccessToken.new/1 method does not use the expires_at param if it is present in the given map, and only uses expires_in or expires. It is common to store access tokens in the DB, so when fetching them back and re-constructing the AccessToken struct it should Just Work™️.

This PR changes that to use expires_at when it is already present.

sheharyarn avatar Oct 27 '19 11:10 sheharyarn

@scrogson There seems to be a problem with the Travis builds. Can you manually restart the failing jobs or update the travis build matrix to install the correct versions?

sheharyarn avatar Oct 28 '19 09:10 sheharyarn

@sheharyarn long time ... my apologies, trying to help.

Where does expires_at come from?

I searched for it on https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4 but I couldn't find it.

yordis avatar Jun 16 '22 04:06 yordis

any updates?

snackfart avatar Sep 13 '22 10:09 snackfart

This pull request has been automatically marked as "stale:discard". If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated!.

github-actions[bot] avatar Feb 07 '24 02:02 github-actions[bot]

Closing this pull request after a prolonged period of inactivity. If this issue is still relevant, please ask for this pull request to be reopened. Thank you!

github-actions[bot] avatar Apr 07 '24 02:04 github-actions[bot]