[openstreetmap/openstreetmap-website] Add allow_read_email oauth permission (#1431)
Ilya Zverev
notifications at github.com
Wed Feb 8 21:57:30 UTC 2017
Most social networks and other OAuth providers allow users to opt in to providing their email addresses to third-party services. This PR adds an `allow_read_email` OAuth permission, which adds a `<email>what at ever.com</email>` into the `/user/details` API output.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/1431
-- Commit Summary --
* Add allow_read_email oauth permission
-- File Changes --
M app/controllers/user_controller.rb (3)
M app/models/client_application.rb (6)
M app/views/user/api_read.builder (3)
M config/locales/en.yml (3)
A db/migrate/20170127002700_add_read_email_permission.rb (11)
M db/structure.sql (8)
M test/controllers/user_controller_test.rb (20)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/1431.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1431.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1431
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170208/6957c41c/attachment.html>
More information about the rails-dev
mailing list