You can buy this project and download/modify it how often you want.
Files of the artifact oauth2 version 2.34 from the group org.entur.ror.helpers.