Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Update AuthBackend #7

Merged
merged 3 commits into from
Sep 23, 2016
Merged

Update AuthBackend #7

merged 3 commits into from
Sep 23, 2016

Conversation

brendonjohn
Copy link
Collaborator

I've combined my changes into one PR so that you don't have to resolve a merge conflict.

This is to fix #4 and #5

  • I've made AUTH0_USER_INFO_KEYS which contains the common user info properties that will always be provided by auth0.
  • user_id is used instead of nickname
  • email has been dropped as a requirement as this is not always provided by auth0

I considered that a users profile could be updated at the time of authenticating, but figure this would make the authentication process needlessly complex.

Please let me know what you think.

Thanks!

@codecov-io
Copy link

codecov-io commented Sep 23, 2016

Current coverage is 93.65% (diff: 100%)

Merging #7 into master will increase coverage by 1.05%

@@             master         #7   diff @@
==========================================
  Files             8          8          
  Lines            54         63     +9   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits             50         59     +9   
  Misses            4          4          
  Partials          0          0          

Powered by Codecov. Last update 82cfd60...d225447

@sultaniman sultaniman merged commit 1c83952 into sultaniman:master Sep 23, 2016
@sultaniman
Copy link
Owner

sultaniman commented Sep 23, 2016

@brendonjohn cool! 👍 thank you. Today in the evening I'll make a release then, if you have something to improve or add then please propose.

@brendonjohn
Copy link
Collaborator Author

Thanks!

user_id = kwargs.get('user_id')

if user_id is None:
raise ValueError(_('user_id can\'t be blank!'))
Copy link
Contributor

Choose a reason for hiding this comment

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

These two lines feel mismatching. If user_id='' then the ValueError won't be raised.

Copy link
Owner

Choose a reason for hiding this comment

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

@peterbe thank you 👍 will fix it.

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.

Auth0Backend does not allow auth to fallback to other auth backends
4 participants