{"id":19711718,"url":"https://github.com/brightcommerce/omniauth-brightcommerce","last_synced_at":"2026-03-05T13:02:17.349Z","repository":{"id":14223330,"uuid":"16930265","full_name":"brightcommerce/omniauth-brightcommerce","owner":"brightcommerce","description":"OmniAuth Oauth2 strategy for Brightcommerce applications.","archived":false,"fork":false,"pushed_at":"2014-02-17T23:28:21.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T14:29:29.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/brightcommerce.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-02-17T23:26:00.000Z","updated_at":"2015-11-25T00:19:11.000Z","dependencies_parsed_at":"2022-09-03T10:01:28.206Z","dependency_job_id":null,"html_url":"https://github.com/brightcommerce/omniauth-brightcommerce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fomniauth-brightcommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fomniauth-brightcommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fomniauth-brightcommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fomniauth-brightcommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brightcommerce","download_url":"https://codeload.github.com/brightcommerce/omniauth-brightcommerce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241029937,"owners_count":19896994,"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-11T22:13:31.620Z","updated_at":"2026-03-05T13:02:17.316Z","avatar_url":"https://github.com/brightcommerce.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth::Brightcommerce\nBrightcommerce OAuth2 Strategy for OmniAuth 1.0.\n\nRead Brightcommerce OAuth2 docs for more details: http://brightcommerce.com/docs/oauth2\n\n## Installation\nAdd to your `Gemfile`:\n\n    gem 'omniauth-brightcommerce'\n\nThen `bundle install`.\n\nOr install it yourself as:\n\n    $ gem install omniauth-brightcommerce\n\n## Dependencies\n* OmniAuth v1.0 or higher\n* OmniAuth Oauth2 v1.0 or higher\n\n## Usage\n`OmniAuth::Strategies::Brightcommerce` is simply a 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    Rails.application.config.middleware.use OmniAuth::Builder do\n      provider :brightcommerce, ENV['BRIGHTCOMMERCE_APIKEY'], ENV['BRIGHTCOMMERCE_SECRET']\n    end\n\n## Authentication Hash\nHere's an example *Authentication Hash* available in `request.env['omniauth.auth']`:\n\n    {\n      :provider =\u003e 'brightcommerce',\n      :uid =\u003e '1234567890',\n      :info =\u003e {\n        :nickname =\u003e 'meetdom',\n        :name =\u003e 'Dom',\n        :location =\u003e 'New York, NY',\n        :image =\u003e '',\n        :description =\u003e 'hello@meetdom.com',\n        :urls =\u003e { \n          :blog =\u003e 'http://meetdom.com'\n        }\n      },\n      :credentials =\u003e {\n        :token =\u003e '2.00JjgzmBd7F...', # OAuth 2.0 access_token, which you may wish to store\n        :expires_at =\u003e 1331780640, # when the access token expires (if it expires)\n        :expires =\u003e true # if you request `offline_access` this will be false\n      },\n      :extra =\u003e {\n        :raw_info =\u003e {\n          ... # data from /2/users/show.json, check by yourself\n        }\n      }\n    }\n\n## Copyright\nCopyright 2014 Brightcommerce, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightcommerce%2Fomniauth-brightcommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrightcommerce%2Fomniauth-brightcommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightcommerce%2Fomniauth-brightcommerce/lists"}