'return the validation data corresponding to the access token'

@api.model
def _auth_oauth_validate(self, provider, access_token):

    oauth_provider = self.env['auth.oauth.provider'].browse(provider)
    validation = self._auth_oauth_rpc(oauth_provider.validation_endpoint, access_token)
    if validation.get('error'):
        raise Exception(validation['error'])
    if oauth_provider.data_endpoint:
        data = self._auth_oauth_rpc(oauth_provider.data_endpoint, access_token)
        validation.update(data)
    return validation
