$string['privacy:metadata:log:time'] = 'The time when the action took place';
$string['privacy:metadata:log:url'] = 'The URL related to the event';
$string['privacy:metadata:log:userid'] = 'The ID of the user who performed the action';
+$string['privacy:metadata:oauth2_refresh_token'] = 'Refresh token used in OAuth 2.0 communication';
+$string['privacy:metadata:oauth2_refresh_token:issuerid'] = 'The ID of the issuer to which the token corresponds';
+$string['privacy:metadata:oauth2_refresh_token:scopehash'] = 'The ID of the user to whom the token corresponds';
+$string['privacy:metadata:oauth2_refresh_token:token'] = 'The refresh token for the respective scopes and user';
+$string['privacy:metadata:oauth2_refresh_token:timecreated'] = 'The time when the token was created';
+$string['privacy:metadata:oauth2_refresh_token:timemodified'] = 'The time when the token was last updated';
+$string['privacy:metadata:oauth2_refresh_token:userid'] = 'The ID of the user to whom the token corresponds';
$string['privacy:metadata:task_adhoc'] = 'The status of ad hoc tasks.';
$string['privacy:metadata:task_adhoc:component'] = 'The component owning the task.';
$string['privacy:metadata:task_adhoc:nextruntime'] = 'The earliest time to run this task.';
'info' => 'privacy:metadata:log:info'
], 'privacy:metadata:log');
+ // The oauth2_refresh_token stores refresh tokens, allowing ongoing access to select oauth2 services.
+ // Such tokens are not considered to be user data.
+ $collection->add_database_table('oauth2_refresh_token', [
+ 'timecreated' => 'privacy:metadata:oauth2_refresh_token:timecreated',
+ 'timemodified' => 'privacy:metadata:oauth2_refresh_token:timemodified',
+ 'userid' => 'privacy:metadata:oauth2_refresh_token:userid',
+ 'issuerid' => 'privacy:metadata:oauth2_refresh_token:issuerid',
+ 'token' => 'privacy:metadata:oauth2_refresh_token:token',
+ 'scopehash' => 'privacy:metadata:oauth2_refresh_token:scopehash'
+ ], 'privacy:metadata:oauth2_refresh_token');
+
return $collection;
}