cyverse / django-cyverse-auth

All Auth schemes, used in various capacities, for CyVerse installations. Designed to be added as a Django App.
Other
1 stars 11 forks source link

Retrieve user's email from keystone #7

Closed xuhang57 closed 7 years ago

xuhang57 commented 7 years ago

Description

Changing the approach of getting users' email address in the OpenStackBckend method. Using keystone to get user's email address instead.

Discussion

I probably not refactor this in the best way. Still sending out the PR so we can discuss it. Maybe should have a function to retrieve user's email addresses. Also, at least in Newton, OpenStack allows to create a user without providing the email address. So the email address would be blank. I don't have a good plan to take care of that case yet.

Checklist before merging:

xuhang57 commented 7 years ago

@steve-gregory Sure. Sorry that I just saw your suggestions. Done! 💯