OmniAuth PG&E
OmniAuth strategy for PG&E's Share My Data using OAuth2.
Usage
Add the strategy to your Gemfile
alongside OmniAuth:
gem 'omniauth'
gem 'omniauth-pge'
Then integrate the strategy into your middleware:
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:
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.
Contributing
Feedback, feature requests, and fixes are welcomed and encouraged. Please make appropriate use of Issues and Pull Requests. All code should have accompanying tests.
Be sure to familiarize yourself with the Code of Conduct.
License
Please see LICENSE for licensing details.