{"id":18524373,"url":"https://github.com/omniauth/omniauth-uber","last_synced_at":"2025-04-09T11:32:01.797Z","repository":{"id":19885362,"uuid":"23149777","full_name":"omniauth/omniauth-uber","owner":"omniauth","description":"OmniAuth strategy for Uber","archived":false,"fork":false,"pushed_at":"2018-10-13T19:28:21.000Z","size":24,"stargazers_count":19,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T13:43:35.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer.uber.com/v1/auth/#oauth-2-0","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omniauth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-20T13:34:10.000Z","updated_at":"2025-02-16T02:13:30.000Z","dependencies_parsed_at":"2022-08-20T14:31:19.831Z","dependency_job_id":null,"html_url":"https://github.com/omniauth/omniauth-uber","commit_stats":null,"previous_names":["tmilewski/omniauth-uber"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-uber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-uber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-uber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-uber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omniauth","download_url":"https://codeload.github.com/omniauth/omniauth-uber/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767250,"owners_count":20992541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:41:07.442Z","updated_at":"2025-04-09T11:32:01.394Z","avatar_url":"https://github.com/omniauth.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"omniauth-uber\n==============\n\n[![Gem Version](https://badge.fury.io/rb/omniauth-uber.svg)](http://badge.fury.io/rb/omniauth-uber)\n[![Build Status](https://travis-ci.org/omniauth/omniauth-uber.svg?branch=master)](https://travis-ci.org/omniauth/omniauth-uber)\n\nUber OAuth2 Strategy for OmniAuth 1.x and supports the OAuth 2.0 server-side flow.\n\nYou may view the Uber API documentation [here](https://developer.uber.com/v1/auth/#oauth-2-0).\n\n## Installation\n\nAdd to your `Gemfile`:\n\n```ruby\ngem 'omniauth-uber'\n```\n\nThen `bundle install`.\n\n\n## Usage\n\n`OmniAuth::Strategies::Uber` is simply Rack middleware. Read the OmniAuth 1.0 docs for detailed instructions: https://github.com/intridea/omniauth.\n\nHere's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :uber, ENV['UBER_CLIENT_ID'], ENV['UBER_CLIENT_SECRET']\nend\n```\n\n## Configuration\n\nCurrently, there is only one configuration option that needs to be set:\n\n* `scope`: A *space separated* list of permissions you want to request from the user (e.g: `profile history request`). All scopes documented by *Uber* are working. Default: `profile`\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :uber, ENV['UBER_CLIENT_ID'], ENV['UBER_CLIENT_SECRET'], :scope =\u003e 'profile history'\nend\n\n```\n\n## Scope Details\n\n* `profile`:\tAccess the basic profile information on a user's Uber account including their first name, email address, and profile picture.\n* `history`:\tPull trip data including the locations, times, and product type of a user's historical pickups and drop-offs.\n* `request`: Allow for trip requests\n* ... see *Uber* developer documentation for more scopes\n\n## Auth Hash\n\nHere's an example *Auth Hash* available in `request.env['omniauth.auth']`:\n\n```ruby\n{\n  provider: 'uber',\n  uid: 'xxxxxx-yyyyy-zzzz-aaaa-bbbbbbbbbb',\n  info: {\n    email: 'foo@bar.com',\n    first_name: 'Tom',\n    last_name: 'Milewski',\n    picture: 'https://d1w2poirtb3as9.cloudfront.net/default.jpeg',\n    promo_code: 'xxxxx',\n  },\n  credentials: {\n    token: 'ABCDEF...',\n    refresh_token: 'ABCDEF...',\n    expires: true\n  },\n  extra: {\n    email: 'foo@bar.com',\n    first_name: 'Tom',\n    last_name: 'Milewski',\n    picture: 'https://d1w2poirtb3as9.cloudfront.net/default.jpeg',\n    promo_code: 'xxxxx',\n    uuid: 'xxxxxx-yyyyy-zzzz-aaaa-bbbbbbbbbb'\n  }\n}\n```\n\n## Supported Ruby Versions\n`omniauth-uber` is tested under 2.2.6, 2.3.3, 2.4.1, and ruby-head.\n\n## Versioning\nThis library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations\nof this scheme should be reported as bugs. Specifically, if a minor or patch\nversion is released that breaks backward compatibility, that version should be\nimmediately yanked and/or a new version should be immediately released that\nrestores compatibility. Breaking changes to the public API will only be\nintroduced with new major versions. As a result of this policy, you can (and\nshould) specify a dependency on this gem using the [Pessimistic Version\nConstraint][pvc] with two digits of precision. For example:\n\n    spec.add_dependency 'omniauth-uber', '~\u003e 1.0'\n\n[semver]: http://semver.org/\n[pvc]: http://docs.rubygems.org/read/chapter/16#page74\n\n\n## License\n\nCopyright (c) 2014-2017 by Tom Milewski\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomniauth%2Fomniauth-uber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomniauth%2Fomniauth-uber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomniauth%2Fomniauth-uber/lists"}