Dancer-Plugin-Auth-Google
view release on metacpan or search on metacpan
123456789101112131415Revision history
for
Dancer-Plugin-Auth-Google
0.07 2019-02-28
- updated endpoints to OAuth via Google Identity Platform.
- remove calls to deprecated G+ endpoints.
- include
"legacy_gplus"
option to keep old data structure
on session(
'google_user'
).
- updated documentation to reflect changes.
- include documentation on how to pass
'state'
data
around
.
0.06 2014-12-27
- added missing prereq.
0.05 2014-12-12
- added missing prereq.
234235236237238239240241242243244245246247248249250251252253
hd
=>
"HOSTED DOMAIN"
,
verified_email
=> 1,
}
```
##### NOTE: G+ is no more. Add 'legacy_gplus: 1' to keep old code running.
Up to version 0.06 of this module the `session(
'google_user'
)`
data structure was as returned by Google Plus' API. Google decided to
discontinue G+ and its API on March 7th 2019, so since version 0.07
we fetch user information from Google's `oauth2/v2/userinfo` endpoint.
Those two structures are very different, so
*
*you
will need to update your code**
if
you used any version of this module
prior to 0.07. If you don't want to, add the `legacy_gplus` option to
your configuration
with
a true value and `session(
'google_user'
)` will instead
return
a data structure as closely matched as possible to the old version.
Note that some data may not be available anymore (particularly,
*circleByCount
* and
*etag
*), in which case the structure
will
return
`
undef
` - but you tested those fields already, right?
lib/Dancer/Plugin/Auth/Google.pm view on Meta::CPAN
395396397398399400401402403404405406407408409410411412413414
id
=>
"NUMERIC UNIQUE USER ID HERE"
,
hd
=>
"HOSTED DOMAIN"
,
verified_email
=> 1,
}
=head4 NOTE: G+ is no more. Add 'legacy_gplus: 1' to keep old code running.
Up to version 0.06 of this module the C<< session('google_user') >>
data structure was as returned by Google Plus' API. Google decided to
discontinue G+ and its API on March 7th 2019, so since version 0.07
we fetch user information from Google's C<oauth2/v2/userinfo> endpoint.
Those two structures are very different, so
B<you will need to update your code> if you used any version of this module
prior to 0.07. If you don't want to, add the C<legacy_gplus> option to
your configuration with a true value and C<< session('google_user') >>
will instead return a data structure as closely matched as possible to
the old version. Note that some data may not be available anymore
(particularly, I<circleByCount> and I<etag>), in which case the structure
will return C<undef> - but you tested those fields already, right?
( run in 0.432 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )