#NEWLINE# def tokengetter( self , f ) : #NEWLINE# #INDENT# 'Register a function as the access token getter.\n\n        The function accepts `client_key` and `token` parameters, and it\n        returns an access token object contains:\n\n            - client: Client associated with this token\n            - user: User associated with this token\n            - token: Access token\n            - secret: Access token secret\n            - realms: Realms with this access token\n\n        Implement the token getter::\n\n            @oauth.tokengetter\n            def get_access_token(client_key, token):\n                return AccessToken.get(client_key=client_key, token=token)\n        ' #NEWLINE# self . _tokengetter = f #NEWLINE# return self