-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[gis_web] Adds FedCM toggle. #5123
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
packages/google_identity_services_web/example/integration_test/js_interop_id_test.dart
Outdated
Show resolved
Hide resolved
packages/google_identity_services_web/example/integration_test/js_interop_id_test.dart
Outdated
Show resolved
Hide resolved
| /// | ||
| /// For more information, see: | ||
| /// * https://developers.google.com/identity/protocols/oauth2/openid-connect#authenticationuriparameters | ||
| String? login_hint, |
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.
The ship has clearly already sailed on this, but out of curiosity why are we using snake case instead of camel case for all of these, given that it's Dart code?
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.
why are we using snake case instead of camel case for all of these, given that it's Dart code?
Originally, my idea was that it'd be easier for users to find documentation for the parameters if they were called exactly the same as in the underlying JS SDK (see also some of the exotic names of the WebGL API in package:web).
If we prefer camelCase in the Dart side of things, it can definitely be done:
@JS('login_hint')
String? loginHint,And it wouldn't be a hard migration, after all I suspect it's only us using this package directly.
Let me know if you want this camelCase'd, I can create a task and go for it 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.
I don't know that it's worth doing a breaking change for, it just struck me as odd so I was curious.
packages/google_identity_services_web/lib/src/js_interop/google_accounts_id.dart
Show resolved
Hide resolved
|
Please PTAL @stuartmorgan when you find it convenient. Thanks! |
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.
LGTM (once the bots are happy). Thanks for the new tests!
|
woopsie! |
|
auto label is removed for flutter/packages/5123, due to - The status or check suite Linux_android android_platform_tests_shard_4 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
flutter/packages@872d6d2...d439062 2023-10-17 [email protected] [gis_web] Adds FedCM toggle. (flutter/packages#5123) 2023-10-17 [email protected] [quick_actions] Convert android to pigeon (flutter/packages#5099) 2023-10-16 [email protected] [flutter_image] added example app (flutter/packages#4353) 2023-10-16 [email protected] Roll Flutter from b00216b to afc3916 (12 revisions) (flutter/packages#5156) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This PR updates the
IdConfigurationobject of the Google Identity Services SDK with new values added since this was last updated.The main change is adding
use_fedcm_for_promptso FedCM can be enabled on Flutter Web apps.Issues
Pre-requirement for: flutter/flutter#133703
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.