Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added base64 decoding of username and password #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tek0011
Copy link

@tek0011 tek0011 commented Jul 26, 2024

The issue is when using username/password that the base64.b64encode function requires a bytes-like object, but it's receiving a string instead.

We can fix this by encoding the username and password string before passing it to base64.b64encode.

@theforeman-bot
Copy link
Member

Can one of the admins verify this patch?

@sbernhard
Copy link
Contributor

@tek0011
Copy link
Author

tek0011 commented Jul 29, 2024

Im not sure the original file was correctly formatted. I have ran this through python linting, it should now be following pythons suggested formatting. This is following PEP 8, but I can remove the empty lines between comments and def's if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants