Dancer-Plugin-Auth-Google

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Revision 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.

README.md  view on Meta::CPAN

234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
        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

395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
        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 )