Skip to content

rurabe/omniauth-pge

 
 

Repository files navigation

OmniAuth PG&E

OmniAuth strategy for PG&E's Share My Data using OAuth2.

Gem Version Build Status Code Climate Coverage Status Dependency Status

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.

About

OmniAuth Strategy for PG&E

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%