Method: Doorkeeper::Config::Builder#revoke_previous_client_credentials_token
- Defined in:
- lib/doorkeeper/config.rb
#revoke_previous_client_credentials_token ⇒ Object
TODO: maybe make it more generic for other flows too? Only allow one valid access token obtained via client credentials per client. If a new access token is obtained before the old one expired, the old one gets revoked (disabled by default)
115 116 117 |
# File 'lib/doorkeeper/config.rb', line 115 def revoke_previous_client_credentials_token @config.instance_variable_set(:@revoke_previous_client_credentials_token, true) end |