Skip to content

Custom Claims and List Users Support #86

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

Merged
merged 14 commits into from
Dec 5, 2017
Merged

Conversation

hiranya911
Copy link
Contributor

Adding two new operations to the auth module:

  • list_users(page_token, max_results): Facilitates paging through all the user accounts of a Firebase project.
  • set_custom_user_claims(uid, claims): Sets custom attributes on a user account.

go/firebase-admin-custom-claims

Copy link
Contributor

@avishalom avishalom left a comment

Choose a reason for hiding this comment

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

LGTM

raise ValueError('Max results must be an integer.')
elif max_results < 1 or max_results > MAX_LIST_USERS_RESULTS:
raise ValueError(
'Max results must be a positive non-zero integer less than '

Choose a reason for hiding this comment

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

I don't believe that zero is positive, so you can just say "positive integer less than"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@hiranya911
Copy link
Contributor Author

Related to #60

@hiranya911 hiranya911 merged commit 8f7c906 into master Dec 5, 2017
@hiranya911 hiranya911 deleted the hkj-custom-claims branch December 5, 2017 19:04
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.

3 participants