-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Major change proposal] Decoupling google-signin
and google-signin-aware
#156
Comments
This is a proof of concept implementation: https://github.com/agektmr/google-signin/tree/v2 |
cc @ebidel |
@addyosmani @Zoramite are the maintainers. |
Any progress? |
The idea behind allowing multiple The The events can definitely be improved. It has been a while since I have worked directly on this project, but if you have some idea for better events I'd be happy to look over some pull requests. |
I just finished looking through the changes that you were using as your concept. There are some changes that we'll probably make later when we do the next version. I may have a project coming up soon that I can work on updating the signin components at the same time. |
@Zoramite, is there any ETA of next version? |
@FluorescentHallucinogen I don't have an ETA currently. |
@Zoramite sounds good. Let me know if there's anything I can be help of. |
@addyosmani @Zoramite Any progress? |
Hi,
I use Google Sign-In in my implementation of Polymer shop which I'm requesting a pull. Though I was suggested to use this
google-signin
component, I'm reluctant to do so for some reasons:google-signin
contains both view and logic (google-signin-aware
). While I agree it's intuitive to use a single component to show a Google Sign-In button, there are use cases where only logic is needed.google-signin-aware
can handle multiple of itself. It's natural consequence if you assume to put multiple Google Sign-In buttons in a single page, but why is it needed? I only see it as an effort to resolve contradiction when putting multiplegoogle-signin
buttons.Here's my proposal:
google-signin-aware
itself and addiron-meta
as a behavior sogoogle-signin
components can refer to a singlegoogle-signin-aware
in a page. (This means implementer needs to put bothgoogle-signin-aware
andgoogle-signin
in the same page.)google-signin-aware-success
event means "authorization" succeeded. Make itgoogle-signin-aware-authz-success
and addgoogle-signin-aware-authn-success
to indicate "authentication" success.signIn()
invocation. That way resolving function can receive result object and pass id_token or auth code to the server.Let me know what you think.
The text was updated successfully, but these errors were encountered: