-
Notifications
You must be signed in to change notification settings - Fork 299
Bulk User Import API #174
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
Bulk User Import API #174
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fd3dd9d
Adding the sync APIs for FirebaseAuth
hiranya911 ac3453b
Added more tests; Added sync APIs for FirebaseMessaging
hiranya911 ded167e
Removing Task references from database, iid and fcm APIs
hiranya911 765f209
Fixing a typo
hiranya911 01ce79e
Minor code clean up
hiranya911 3913688
Merged with master (auth unit test improvements)
hiranya911 d5ec1c3
Updated javadocs; Renamed internal helpers of FirebaseMessaging for c…
hiranya911 f8f33b4
Removed the deprecated FirebaseCredential API (#149)
hiranya911 27eddb6
Removing the Task API (#152)
hiranya911 edd825e
Dropping Support for App Engine Java 7 Runtime (#153)
hiranya911 559ce44
Removing Deprecated LogWrapper API (#154)
hiranya911 3979c02
Merged with master
hiranya911 ef036bb
merged with master
hiranya911 0523bf3
Initial code for the importUsers() API
hiranya911 0db88c5
Added documentation and more tests
hiranya911 fe3cc03
Added integration tests; Scrypt hash; more documentation
hiranya911 46e51ab
Added more tests
hiranya911 5ede505
Merge branch 'master' into v6
hiranya911 efc9016
updated test
hiranya911 dbc1492
Merged with master
hiranya911 0633d37
Merged with v6
hiranya911 2514703
Adding other hash types
hiranya911 ebe905c
Added the remaining hash algorithms
hiranya911 1182576
Renamed to ImportUserRecord
hiranya911 421a86c
Updated documentation
hiranya911 7b085df
Merged with master
hiranya911 501faf8
Some minor cleanup
hiranya911 dccc454
Updated documentation
hiranya911 a4cf116
Updated documentation; Made hash required in UserImportOptions; Other…
hiranya911 9130ab2
Renamed BasicHash to RepeatableHash; Made rounds range test configurable
hiranya911 3f30183
Added javadoc comment
hiranya911 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,19 +22,19 @@ | |
| import com.google.firebase.auth.UserImportHash; | ||
| import java.util.Map; | ||
|
|
||
| abstract class BasicHash extends UserImportHash { | ||
| abstract class RepeatableHash extends UserImportHash { | ||
|
|
||
| private final int rounds; | ||
|
|
||
| BasicHash(String name, Builder builder) { | ||
| RepeatableHash(String name, int min, int max, Builder builder) { | ||
| super(name); | ||
| checkArgument(builder.rounds >= 0 && builder.rounds <= 120000, | ||
| "Rounds value must be between 0 and 120000 (inclusive)."); | ||
| checkArgument(builder.rounds >= min && builder.rounds <= max, | ||
| "Rounds value must be between %s and %s (inclusive).", min, max); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make this "%d".
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| this.rounds = builder.rounds; | ||
| } | ||
|
|
||
| @Override | ||
| protected final Map<String, Object> getOptions() { | ||
| protected Map<String, Object> getOptions() { | ||
| return ImmutableMap.<String, Object>of("rounds", rounds); | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a short class comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done