Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Update AuthenticationToken to include an expiration date #709

Closed
kevinchalet opened this issue Feb 24, 2016 · 7 comments
Closed

Update AuthenticationToken to include an expiration date #709

kevinchalet opened this issue Feb 24, 2016 · 7 comments

Comments

@kevinchalet
Copy link
Contributor

#698 (comment)

@Tratcher
Copy link
Member

Tratcher commented Mar 3, 2016

I don't recommend it.
A) It complicates the storage and access model when we go beyond KVP
B) Expiration information is not commonly available for most token types. E.g. For OAuth you only get an expiration for the access token, and only from some providers. I've never seen it for refresh tokens, etc..
C) The only way to know if a token is really valid is to use it.

@Eilon
Copy link
Member

Eilon commented Mar 3, 2016

For the reasons @Tratcher mentions we are not planning to add this.

@Eilon Eilon closed this as completed Mar 3, 2016
@kevinchalet
Copy link
Contributor Author

I'm fine (though limiting AuthenticationToken to a simple KVP clearly limits the way we could extend it).

In this case, you should consider removing expires_in/expires_at from the new tokens stuff as it's definitely not an authentication token.

@Eilon
Copy link
Member

Eilon commented Mar 3, 2016

@Tratcher ?

@Tratcher
Copy link
Member

Tratcher commented Mar 3, 2016

It's still informative. We included it in all the other incarnations (claims, etc.), I don't see why you'd push to drop it now.

@kevinchalet
Copy link
Contributor Author

I don't see why you'd push to drop it now.

Because it's semantically wrong: an expiration date is not an authentication token. That said, I think it's worth keeping it somewhere, so why not storing it as a simple property? (instead of including it in the authentication tokens stuff)

@Tratcher
Copy link
Member

Tratcher commented Mar 4, 2016

It's harder to retrieve and flow with the tokens if you treat it as separate data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants