Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utensils/omniauth-pge
OmniAuth Strategy for PG&E
https://github.com/utensils/omniauth-pge
middleware omniauth omniauth-strategy ruby ruby-gem
Last synced: about 2 months ago
JSON representation
OmniAuth Strategy for PG&E
- Host: GitHub
- URL: https://github.com/utensils/omniauth-pge
- Owner: utensils
- License: mit
- Created: 2015-05-17T07:18:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T16:04:00.000Z (over 9 years ago)
- Last Synced: 2024-04-24T12:06:10.608Z (8 months ago)
- Topics: middleware, omniauth, omniauth-strategy, ruby, ruby-gem
- Language: Ruby
- Size: 211 KB
- Stars: 7
- Watchers: 10
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# OmniAuth PG&E
OmniAuth strategy for [PG&E's Share My Data](http://www.pge.com/en/myhome/addservices/sharemydata/vendor/testrequirements/index.page) using OAuth2.
[![Gem Version](https://badge.fury.io/rb/omniauth-pge.png)](https://rubygems.org/gems/omniauth-pge) [![Build Status](https://travis-ci.org/doomspork/omniauth-pge.svg?branch=master)](https://travis-ci.org/doomspork/omniauth-pge) [![Code Climate](https://codeclimate.com/github/doomspork/omniauth-pge/badges/gpa.svg)](https://codeclimate.com/github/doomspork/omniauth-pge) [![Coverage Status](https://coveralls.io/repos/doomspork/omniauth-pge/badge.png)](https://coveralls.io/r/doomspork/omniauth-pge) [![Dependency Status](https://gemnasium.com/doomspork/omniauth-pge.svg)](https://gemnasium.com/doomspork/omniauth-pge)
## Usage
Add the strategy to your `Gemfile` alongside OmniAuth:
```ruby
gem 'omniauth'
gem 'omniauth-pge'
```Then integrate the strategy into your middleware:
```ruby
use OmniAuth::Builder do
provider :pge, ENV['PGE_CLIENT_ID'], ENV['PGE_CLIENT_SECRET']
end
```In Rails, you'll want to add to the middleware stack:
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :pge, ENV['PGE_CLIENT_ID'], ENV['PGE_CLIENT_SECRET']
end
```For additional information, refer to the [OmniAuth wiki](https://github.com/intridea/omniauth/wiki).
## Contributing
Feedback, feature requests, and fixes are welcomed and encouraged. Please make appropriate use of [Issues](https://github.com/doomspork/omniauth-pge/issues) and [Pull Requests](https://github.com/omniauth/pge_auth/pulls). All code should have accompanying tests.
Be sure to familiarize yourself with the [Code of Conduct](CODE_OF_CONDUCT.md).
## License
Please see [LICENSE](LICENSE) for licensing details.