Follow-up from "Upgrade Doorkeeper gem to 5.0.2"
The following discussions from !21173 (merged) should be addressed:
To verify the details of a token, use the `token/info` endpoint provided by the Doorkeeper gem. For more information, see [`/oauth/token/info`](https://github.com/doorkeeper-gem/doorkeeper/wiki/API-endpoint-descriptions-and-examples#get----oauthtokeninfo)).
You must supply the access token, either: - As a parameter: ``` GET https://gitlab.example.com/oauth/token/info?access_token=OAUTH-TOKEN ``` - In the Authorization header: ```shell curl --header "Authorization: Bearer <OAUTH-TOKEN>" https://gitlab.example.com/oauth/token/info ``` The following is an example response:
### Deprecated fields The fields `scopes` and `expires_in_seconds` are included in the response. These are aliases for `scope` and `expires_in` respectively, and have been included to prevent breaking changes introduced in [doorkeeper 5.0.2](https://github.com/doorkeeper-gem/doorkeeper/wiki/Migration-from-old-versions#from-4x-to-5x). Don't rely on these fields as they will be removed in a later release.
There's enough here to make it's own little section.