Updated: 2016-12-20 11:10:24 +0800
Gitlab uses Doorkeeper for oauth.
The Doorkeeper wiki has an ariticle “Customizing Token Expiration” https://github.com/doorkeeper-gem/doorkeeper/wiki/Customizing-Token-Expiration
This wiki tells us a configuration “access_token_expires_in”. I searched in gitlab source code and found it sets to nil.
This meas the ‘access_token’ will never expire.
I have same question. No any official reply?
I found this http://stackoverflow.com/a/39265670