python-consul icon indicating copy to clipboard operation
python-consul copied to clipboard

Token parameter is not passed in Session API Calls

Open pi19404 opened this issue 4 years ago • 0 comments

in base/consul.py functions sesson create session renew session destroy session list session node

token is not passed in the http requets and it gives ACL permission denied error when using with consul server with ACL enabled .

adding the code token = self.agent.token if token: params.append(('token', token))

in the function resolves the issues and passes the ACL token in the http requests calls . without these ACL error is observed in these function calls .

pi19404 avatar Jun 06 '21 08:06 pi19404