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

nsqd Authentication Support #72

Merged
merged 1 commit into from
Jun 7, 2014
Merged

Conversation

jehiah
Copy link
Member

@jehiah jehiah commented May 27, 2014

This is to go along with nsqio/nsq#356 and support Authentication in the client library

cc: @mreiferson

@mreiferson mreiferson changed the title Nsqd Authentication Support nsqd Authentication Support May 27, 2014
@jehiah
Copy link
Member Author

jehiah commented Jun 2, 2014

RFR here @mreiferson

@@ -270,6 +277,7 @@ def _on_identify_response(self, data, **kwargs):
self.off('response', self._on_identify_response)

if data == 'OK':
logging.waring('nsqd version does not support feature netgotiation')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo for warning

@mreiferson
Copy link
Member

the rest LGTM, but I still think we should finalize nsqd side stuff before merging, in case we decide to make any changes

@@ -287,6 +297,9 @@ def _on_identify_response(self, data, **kwargs):
self._features_to_enable.append('tls_v1')
if self.snappy and data.get('snappy'):
self._features_to_enable.append('snappy')

if data.get('auth_required'):
self._authentication_required = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two lines can be simplified to self._authentication_required = data.get('auth_required', False)

@mreiferson
Copy link
Member

naming suggestion applies here too, I think we should just run with auth over either authentication or authorization

@jehiah
Copy link
Member Author

jehiah commented Jun 7, 2014

merge me

mreiferson added a commit that referenced this pull request Jun 7, 2014
@mreiferson mreiferson merged commit c250590 into nsqio:master Jun 7, 2014
@mreiferson mreiferson deleted the auth_support_72 branch June 7, 2014 05:54
@jehiah jehiah mentioned this pull request Jul 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants