celery flower api 接口认证

auth_user = 'admin'
auth_passwd = '123456'
usrPass = "%s:%s" % (auth_user, auth_passwd)
b64Val = base64.b64encode(usrPass.encode('utf-8'))
headers = {
    "Authorization": "Basic %s" % b64Val.decode(),
}
print(headers)
posted @ 2024-03-19 11:32  bitterteaer  阅读(19)  评论(0编辑  收藏  举报