Releases: GoogleWebComponents/google-signin
1.1.0
1.0.3
v1.0.2
1.0.1
0.3.0
Reworking much of the internals of the <google-signin>
component, the 0.3.0
supports the updated Google Sign-In for websites library. The theme of the component is also changing to use a blue Google branding instead of the red Google+ for scopes that are not related to Google+.
This release also breaks some compatibility with existing usage of the <google-signin>
component. One of the major changes is the details passed through the google-signin-*
and google-signin-aware-*
events is now an object that contains a user object (on success).
One common use case is to get the auth_token
for use in talking with other google APIs. Instead of using detail.result.access_token
you can get the auth_token
by using detail.user.getAuthResponse().access_token
.
With this release, the offline
attribute was temporary removed as it was not working correctly with the underlying API changes. A future release will bring this feature back once the underlying issues are fixed.
You can check-out the element Docs and refreshed Demos in their usual locations.
0.2.1
This is a maintenance release of google-signin
, updating it to work with the latest version of its dependencies.
google-signin 0.2.0 unsloped-flame
This release of <google-signin>
updates the element to Polymer 0.5.1, refactors the element to use <paper-button-base>
and now uses a <core-icon>
iconset for the visuals used in the sign-in button. We also now include more demos.
You can check-out the element Docs and refreshed Demos in their usual locations.
The element is now used in several Polymer demo apps, including Eric Bidelman's GMail clone from Chrome Dev Summit and the <google-youtube-upload>
element.
Examples
Standard button with profile
scope:
<google-signin clientId="..." scopes="profile"></google-signin>
Wide tall button with email
scope:
<google-signin clientId="..." scopes="email" width="wide" height="tall"></google-signin>
Short light themed button with email
and plus.profile.emails.read
scope:
<google-signin clientId="..." scopes="https://www.googleapis.com/auth/plus.profile.emails.read email" theme="light" width="standard" height="short"></google-signin>
Tall light themed icon only button with plus.login
scope:
<google-signin clientId="..." scopes="https://www.googleapis.com/auth/plus.login" theme="light" width="iconOnly" height="tall"></google-signin>
Changelog
- 81a4ece Style tweaks for consistency
- 4e7c71e Update to Polymer 0.5.1
- a47c495 Fix Apache-2, add authentication keyword
- 2b42a40 Updating reference to the google-apis component
- 2306efa Fixing the styling of signed in but need more auth.
- 3fd9c01 Refactoring to use the paper-button-base and remove the deprecated paper-focusable dependency.
- b30d8d3 Moving the icons to be an iconset.
- ea6e2a4 Adding a demo for the signin-aware element to the demo page.
- 087aceb Only allowing the authRequest to be handled by the default handler for now.
- 9576aaa Switching to the profile.emails.read scope and the email scope.
- 7aecc64 Fixing the failed auth from cancelling consent.
- 57fcfbf Fixing the native style events to still fire, just the signals need to be restricted.
- f82bed3 Fixing a bad attribute for the email scope.
- dc53ee5 Updating the scopes in the example to show another use case.
- 46079c9 Updating the demo page with more examples of using the signin button.
- 9a4f07c Updating the handling of the
authResult
to be done by all buttons. - e9275bd Removing more dependencies on global variables.
- 55c71fb Removing shared global variables for some of the general attributes.
- 0173073 improving the Roboto reference.
- 376c3b8 Fixing the font to be RobotoDraft.
- 5da9ce7 Fixing the import for the roboto font to be with the other imports.
0.1.0 encouraging-groove
<google-signin>
0.1.0 is out! Check out the element landing page for docs or the latest demo.
Highlights
- Updated the element to use Polymer 0.4.x elements
- Sign-in now uses Material Design ripple effects (via paper-ripple)
- New
offline
attribute for triggering offline access support - We now support a
noink
attribute for getting back the standard button styles - Now use the latest Roboto font for our typography
- The
width
,height
, andtheme
attributes are now supported - Improved when google-signin-aware requests get authenticated
Install
bower install GoogleWebComponents/google-signin
Changelog
- dd792d4 Bump to 0.1.0
- c7b0b28 Reorganise the element notes.
- c99e87a Update dependencies to 0.4.x
- 052c6c0 Fix #49: google-signin-offline is not fired
- ddd8cd1 Change when google-signin-aware requests auth
- 8e075cd Fixing a missing
}
that was lost during merge/rebase. - da9d085 Fixing the demo text and status to be placed differently.
- 79a7860 Adding the paper ripple to the signin button.
- 5829ca8 Moving the shared stying for the icons.
- 01b0584 Updating with support for a
noink
attribute. - e8fa20f Adding the missing focusable dependency.
- 46b66ab Fixing the ripple to be appropriate for the themes.
- 65a6dd5 Adding the paper-ripple to the signin element.
- bd15ce9 Adding Randy Merrill to the authors section.
- 9418fe7 Updating the styling for the light theme when signed in.
- 5dc6415 Updating the doc string for the
signed-out
event to be separate. - 0299e0f Switching to use the Roboto font component.
- fbe9646 Adding default for
appPackageName
attribute. - 0854130 Fixing a bad operator.
- a9639fa Switching to use a mapping of attributes to sigin params.
- da12439 Adding support for the
appPackageName
attribute for over-the-air installs. - 7b26b9c Bump Polymer to 0.3.5 & core-signals to latest release.
- 9e8922d Updating the border to be consistent size.
- 705be52 Updating the styling to work with the
short
andtall
heights. - dcfb3d8 Adding support for the
width
andtheme
attributes. - e6e17c3 Switching over to use the svg version of the G+ logo.
- 5b82093 labelSignin overwrites buttonStyle attribute
- 985c804 documentation updates
- 319e524 updated image location
- 40d1859 guideline button styles and white color
- 2723e34 Fixing the grammar of the offline event description.
- d9d88ab Updating the description of the offline event to be more correct.
- 9728347 Fixing the name of the offline event in the main description.
- d017747 Shuffling around the params.
- 56a0e08 Moving from
[]
to.
notation. - 095a8be Adding the JSDoc for the offline event.
- f3facf4 Updating the image example of the component in use.
- 108913f Adding an
offline
attribute to trigger offline access support. - 5c61fa8 Tweaking ending comment.
- 9a2c993 Update bower metadata
- ba247cf polymer-signal -> core-signal
- 10262da Bower json referenced incorrect deps. Use specific versions from latest releases
- eebccf6 Land #29 h/t @ebidel for updating to core-signals
- f927f07 Move to GoogleWebComponents
0.0.8-photogenic-port
This release of the <google-signin>
button introduces some prettier default styling and also includes several fixes and code tweaks under the hood. Users of this version of the element will see a sign-in button that looks like this:
instead of , with a similar sign-in flow to what you're used to:
To update to 0.0.8:
$ bower update google-signin
or install:
$ bower install GoogleWebComponents/google-signin --save
Highlights from the changelog:
- 6950993 Style buttons according to branding guidelines
- 9539d9c Pass all parameters into gapi.auth.signIn
- 68ff0f9 Fixed styling in docs for
google-signin-aware-signed-out
- ba1ed8a Update clientId to shared demo version
For reference, here are a few of the elements using <google-signin>
today:
Some <google-signin>
experiments written by Gerwin Sturm are available here, including this G+ photos viewer:
Finally, if you missed Google I/O 2014, we used <google-signin>
in some of our codelabs, including Building a Google Drive client with Polymer, which is now online in case you'd like to try it out.
~ With thanks to Gerwin and Jonathan Beri for their help with this release.
google-signin 0.0.7
This release of <google-signin>
makes it easier for elements and apps to be aware of whether a user has previously authenticated using the element.
It also enables elements to request permission to new API scopes (e.g Drive, G+) after the initial authentication has occurred. We've included a changelog and some more info on the new workflow below.
See the component page for demos and docs.
Workflow
google-signin
is an element you include once per page with some base-scopes and the clientId
(it can still be used stand-alone if necessary with no changes if you were using 0.0.6).
google-signin-aware
is included in all elements that need authentication, and extra scopes can be defined (for example, if one element has requested permissions for Google+ and another latest requests permissions for say, Drive). This element fires a google-auth-request
signal with the requested scopes.
google-signin
listens for those requests. When a request comes in it first checks against the scopes that are already authenticated (stored from last call to handleAuthResult
).
If new scopes are necessary it will append those to the list of base-scopes. If an auth-flow is currently in process it will wait for this to complete, otherwise it will display an extra button that will launch another Sign-in flow on click.
Thanks
Thanks go out to Gerwin Sturm who helped with this release.
Updates
- 297fc40 Fire additional event for incremental auth scenarios
- 86916d6 Propagate signin-failure and signout events to the signin-aware element
- 670d045 Return authResult in google-signin-aware-success event
- 0ce1f10 Implement signin-aware element
Docs
- a8ec910 Fixes #3 - add note about multiple scopes
- 7ce6e31 Update license info
- f59dc27 Add preview, list events correctly, clean-up links
- 1aee7b3 Add desc, authors, license, keywords, update reps.
- d443db6 Update docs
- df9d807 Add
@default
docs - 6c334e9 Fix comments
- 062a249 Update description
- 3294742 Add mobile meta tag
- 80b7335 Add link to dev console