Skip to content

Authentication fails #12

@Yoiro

Description

@Yoiro

When trying to call Jolokia with authentication, I'm always getting a 403. By searching a bit into the pyjolokia.py file, I figured that the base64 string is not well encoded:
print(request.headers) in the function _getJson gives this result:
{'Content-type': 'application/json', 'Authorization': "Basic b'[myAuth]'"}

I found a workaround solution by putting this (pyjolokia.py, line 125):

authheader = "Basic %s" % base64string.decode()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions