Skip to content
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

🐛 [firebase_ui_oauth_google] I think clientId should be optional, not required #10320

Closed
kyle-seongwoo-jun opened this issue Jan 25, 2023 · 7 comments · Fixed by #10360
Closed
Assignees
Labels
platform: ios Issues / PRs which are specifically for iOS. plugin: ui resolution: solution-provided A solution has been provided in the issue. type: enhancement New feature or request type: missing-feature A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.

Comments

@kyle-seongwoo-jun
Copy link

May be related: #9823

I would like to suggest making the clientId parameter optional in the firebase_ui_oauth_google package, as it is not required according to the documentation for the google_sign_in package.

The documentation states that "It is optional if file-based configuration is used. The value specified here has precedence over a value from a configuration file."

This means that if a developer wants to use file-based configuration, such as a GoogleService-Info.plist file, they are currently unable to do so because the clientId parameter is required.

Making this parameter optional would provide more flexibility for developers using the firebase_ui_oauth_google package.

Thank you.

@kyle-seongwoo-jun kyle-seongwoo-jun added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Jan 25, 2023
@darshankawar darshankawar added the triage Issue is currently being triaged. label Jan 25, 2023
@darshankawar
Copy link

Thanks for the report @kyle-seongwoo-jun
Can you check this similar issue that has been fixed already to see if it helps to answer your case ?

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Jan 25, 2023
@kyle-seongwoo-jun
Copy link
Author

@darshankawar Yes, unfortunately I checked issue #10017, but it does not appear to be related to my issue because it is an Android-specific issue and this issue is related to an iOS project.

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Jan 25, 2023
@darshankawar
Copy link

Thanks for the feedback.

/cc @Lyokone

@darshankawar darshankawar added plugin: ui platform: ios Issues / PRs which are specifically for iOS. type: missing-feature A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API. type: enhancement New feature or request and removed type: bug Something isn't working Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Jan 26, 2023
@lesnitsky lesnitsky self-assigned this Feb 1, 2023
@lesnitsky
Copy link
Member

@kyle-seongwoo-jun The clientId will stay required, since we want a seamless integration on desktop platforms without any desktop-specific configuration, so the Firebase UI library follows the Flutter's build once, run everywhere motto.

For the cases when GoogleService-Info.plist is preferred, #10360 introduces iOSPreferPlist option: when set to true, clientId will be ignored on iOS.

@kyle-seongwoo-jun
Copy link
Author

@lesnitsky Thank you for clarifying the reasoning behind keeping the "clientId" parameter required in the firebase_ui_oauth_google package. I understand that having a seamless integration on desktop platforms is important for the library to follow the Flutter motto of "build once, run everywhere."

It's great to hear that the #10360 issue introduces the "iOSPreferPlist" option, which will allow developers to use "GoogleService-Info.plist" on iOS by ignoring the "clientId" parameter. I appreciate the time and effort put into improving the library.

Thank you 😍

@darshankawar darshankawar added the resolution: solution-provided A solution has been provided in the issue. label Feb 2, 2023
@kyle-seongwoo-jun
Copy link
Author

Hi @lesnitsky, can I get an update on the status of PR #10360?

It was approved a few days ago, but it hasn't been merged yet, so I'm just curious about the status.

Thank you!

@lesnitsky
Copy link
Member

@kyle-seongwoo-jun I have no idea why it wasn't merged after 2nd approval, probably @Lyokone just forgot to merge it :)

it's merged now

@firebase firebase locked and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: ios Issues / PRs which are specifically for iOS. plugin: ui resolution: solution-provided A solution has been provided in the issue. type: enhancement New feature or request type: missing-feature A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants