def get_refresh_token(self, target_id, grant_type, sid):
        try:
            lifetime = self.token_policy['refresh_token'][target_id][grant_type]
        except __HOLE__:
            raise NotAllowed(
                'Issue access token for grant_type {} for target_id {} not allowed')
        else:
            return self.refresh_token_factory(
                sid, target_id=target_id, lifetime=lifetime)
dataset/ETHPy150Open rohe/pyoidc/src/oic/utils/token_handler.py/TokenHandler.get_refresh_token