No description
Find a file
2017-04-06 18:31:42 +02:00
app Unused methods removed 2017-04-06 18:31:42 +02:00
bin Spring updated 2017-04-06 12:51:00 +02:00
config Experimental authentication for Launchpad and Google added 2017-04-06 12:56:06 +02:00
db Experimental authentication for Launchpad and Google added 2017-04-06 12:56:06 +02:00
doc Added docs on debshots:accesslog2visits rake task 2016-08-16 12:50:19 +02:00
lib More relaxed blacklist for importing packages 2016-10-30 13:03:04 +01:00
log Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00
public Added dummy image for broken files 2016-11-03 13:25:00 +01:00
test Logs controller added 2016-08-23 19:01:01 +02:00
vendor/assets Removed vendor jQuery fancybox stylesheet - it's included in the Gem 2016-04-06 16:42:20 +02:00
.gitignore Ignoring Ruby installation 2016-08-10 08:44:54 +02:00
.ruby-version rbenv Ruby version added 2016-05-18 18:40:32 +02:00
config.ru Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00
Gemfile Experimental authentication for Launchpad and Google added 2017-04-06 12:56:06 +02:00
Gemfile.lock Gemfile and vendor cache updated 2017-04-06 12:56:31 +02:00
Guardfile Removed "rails s" from Guardfile 2015-04-24 12:20:06 +02:00
Rakefile Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00
README.developer.md Experimental authentication for Launchpad and Google added 2017-04-06 12:56:06 +02:00

Authentication

The application uses omniauth to allow local authentication for moderators and adds OAuth authentication to connect to Google+, Github and other authentication providers.

Documentation on omniauth:

https://github.com/omniauth/omniauth/wiki/List-of-Strategies https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview

Google+

The client ID for the debshots application is:

398593918966-0fpmit0pb6ptio1ndsie5dfcnqhei63l.apps.googleusercontent.com

The private key is:

uRQq_dLs1kx7l5sYIyEyPVRc

(This information is connected to the christoph.haas@gmail.com account.)

Amazon

launchpad

Github

Caveats

The OAuth callback handling uses Ruby's "faraday" library. Unfortunately Faraday may easily miss the directory where the common CAs are stored. So the path to the certificates on the system needs to be provided:

config.omniauth :google_oauth2, '398593918966-0fpmit0pb6ptio1ndsie5dfcnqhei63l.apps.googleusercontent.com', 'uRQq_dLs1kx7l5sYIyEyPVRc', :client_options => {:ssl => {:ca_path => '/etc/ssl/certs'}}

For another explanation of the issue see: https://gist.github.com/kt103099/3183125