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

fix #181 add password param to constructor #182

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

razzzp
Copy link
Contributor

@razzzp razzzp commented Jul 27, 2023

Hi,

This pull request is for parsing the principal if it is given in the form of user@REALM:password. It will split the username and password and pass them both to spnego.client().

@razzzp razzzp changed the title split principal into user@realm and password, if the password is defined fix #181 split principal into user@realm and password, if the password is defined Jul 27, 2023
@jborean93
Copy link
Contributor

It'll be better to just add a new kwarg where you can specify the password. Relying on string splitting will be error prone, especially if you start having usernames/realms with : in them.

@razzzp
Copy link
Contributor Author

razzzp commented Jul 27, 2023

oh so just add a "password" param to the HTTPKerberosAuth.init?

@razzzp razzzp changed the title fix #181 split principal into user@realm and password, if the password is defined fix #181 add password param to constructor Jul 27, 2023
@jborean93 jborean93 merged commit 3e0371a into requests:master Aug 8, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants