Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Fix basic auth ofuscation and prefix (fixes #128) #145

Merged
merged 2 commits into from
Mar 24, 2015

Conversation

leplatrem
Copy link
Contributor

No description provided.

self.request.registry.settings['cliquet.basic_auth_enabled'] = True

def test_prefixes_users_with_basicauth(self):
user_id = self.policy.unauthenticated_userid(self.request)
Copy link
Contributor

Choose a reason for hiding this comment

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

what about authenticated_userid?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean the attribute on the request ?

It is set elsewhere in pyramid I guess....

@Natim
Copy link
Contributor

Natim commented Mar 24, 2015

ok looks good to me.

*args,
**kwargs)

def unauthenticated_userid(self, request):
Copy link
Contributor

Choose a reason for hiding this comment

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

unauthenticated_userid should be called only when we've went trough the authentication procedure already, and it's supposed to returned a cached version of the user id.

almet added a commit that referenced this pull request Mar 24, 2015
Fix basic auth ofuscation and prefix (fixes #128)
@almet almet merged commit 06decea into master Mar 24, 2015
@almet almet removed the to review label Mar 24, 2015
@almet almet deleted the 128_basic_auth_prefix branch March 24, 2015 10:33
@almet almet added this to the 1.4.0 milestone Mar 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants