def _cacheAuthToken(fun):
    def inner(*args, **kwargs):
        if hasattr(cherrypy.request, 'girderToken'):
            return cherrypy.request.girderToken

        token = fun(*args, **kwargs)
        setattr(cherrypy.request, 'girderToken', token)

        return token
    return inner
This decorator for getCurrentToken ensures that the token lookup
dataset/ETHPy150Open girder/girder/girder/api/rest.py/_cacheAuthToken