-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: Provider Models (AuthProvider + concrete types) #2223
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
Conversation
* which is required for security when upgrading anonymous users. Defaults to true. | ||
*/ | ||
|
||
val isEmailLinkForceSameDeviceEnabled: Boolean = true, |
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.
this was a requirement and a config validation in the old auth library for EmailAuthProvider. When anonymous upgrade is enabled and email link is enabled, you must force same device for security purposes. here
auth/src/main/java/com/firebase/ui/auth/compose/configuration/AuthProvider.kt
Show resolved
Hide resolved
) | ||
) { | ||
fun validate(context: Context) { | ||
// TODO(demolaf): do we need this? since we are requesting this in AuthProvider.Google? |
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.
do we need to validate missing server client id?
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.
Was the validation done on the current version of the library?
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.
Yes but if you look reference in current version, when serverClientId is missing throws if not found during actual use.
auth/src/main/java/com/firebase/ui/auth/compose/configuration/AuthProvider.kt
Show resolved
Hide resolved
auth/src/main/java/com/firebase/ui/auth/compose/configuration/AuthProvider.kt
Outdated
Show resolved
Hide resolved
- validate serverClientId empty string - validate applicationId empty string - remove @test(expected=) not descriptive - tests covering AuthProviders Google and Facebook config validation
Uh oh!
There was an error while loading. Please reload this page.