nulab / scala-oauth2-provider

OAuth 2.0 server-side implementation written in Scala
MIT License
537 stars 97 forks source link

AccessToken never expires #118

Closed xring closed 7 years ago

xring commented 7 years ago

https://github.com/nulab/scala-oauth2-provider/blob/dbed51d3aa7f984ba0e8676297fe93718c7e80d7/src/main/scala/scalaoauth2/provider/DataHandler.scala#L23

the expiresIn will never change after initial.

tsuyoshizawa commented 7 years ago

The reason is from Avoid response where 'expiresIn' could be negative #107 The expires value will fix on creating AccessToken instance.

xring commented 7 years ago

Got it, that make sense. Thanks @tsuyoshizawa .