stable

Clone or download

Read-only

Daily cleanup of the expired auth code, refresh and access tokens

The expired access tokens are cleaned independently of the authorization codes because they do not need to be keep for the entire life of the grant and one grant might accumulate a lot of different access tokens if they are refreshed periodically. Part of story #14542: have OAuth2 flow Change-Id: I42794b0542fe78e5b265948ed6408ee99a900e36

Modified Files

Name
M plugins/oauth2_server/include/AccessToken/OAuth2AccessTokenDAO.php +11 −0 Go to diff View file
M plugins/oauth2_server/include/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAO.php +14 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +9 −1 Go to diff View file
M plugins/oauth2_server/tests/integration/AccessToken/OAuth2AccessTokenDAOTest.php +12 −0 Go to diff View file
M plugins/oauth2_server/tests/integration/Grant/AuthorizationCode/OAuth2AuthorizationCodeDAOTest.php +27 −0 Go to diff View file