Dancer-Plugin-Auth-Google

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

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

        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

        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?

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.296 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )