From patchwork Fri Jun 8 16:55:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 9177 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9E44323E5A for ; Fri, 8 Jun 2012 16:55:14 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4C87BA1804A for ; Fri, 8 Jun 2012 16:55:14 +0000 (UTC) Received: by ghbz12 with SMTP id z12so1548958ghb.11 for ; Fri, 08 Jun 2012 09:55:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=gTh+7EycD4VhF2p0/f/7Rh0+oLHmgsm6tcYjt/NKnvw=; b=ZxlNqgJmVw0ZmwKRC3tctGtKHndFQYjkWMF4XcsGZVmkbQ7Ss7JTZJy5WCzsGSJijV 9vynFxZMwNhCRQWWkOptZoAkkFT+q0T90VGUaDikWwM0tHmgOnHnMqtnMvxFNk9wUI97 BOAKOK5WTJu/Ir8xt+1RxMCmvfkojI0hv0MT2GgyZGiKzzIxJxqSY6cvXi4L7LzpJbMQ O4UF8413ueW5Tv+FdYO3tk6KcN2m1RZmK5HZ+arFmaiF4jCpGgOw07tSBgPF1mQud7Hd eIMEHNbTitRIXF7/DZjad6D7HKAY43+kM4oVywygaGNMM5sBeFzmMXEZorhEdgy06Y4H 9Wfg== Received: by 10.50.163.99 with SMTP id yh3mr3011240igb.53.1339174513571; Fri, 08 Jun 2012 09:55:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp47588ibb; Fri, 8 Jun 2012 09:55:12 -0700 (PDT) Received: by 10.180.78.233 with SMTP id e9mr1985946wix.5.1339174511970; Fri, 08 Jun 2012 09:55:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id n12si11284530wee.32.2012.06.08.09.55.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jun 2012 09:55:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Sd2St-00061p-EQ for ; Fri, 08 Jun 2012 16:55:11 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 5ADD4E00B3 for ; Fri, 8 Jun 2012 16:55:11 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 378 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 378: Allow configurable support for OpenID redirect domains on login Message-Id: <20120608165511.6673.43309.launchpad@ackee.canonical.com> Date: Fri, 08 Jun 2012 16:55:11 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15376"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: d9651d07caa8eaeebd6b94fc5d81ccf01f4dda34 X-Gm-Message-State: ALoCoQlYoz9Wv+0z8lFZdaGi85fOfebmqupHPC0VCYARyEXr6+aQuX/rjb4r/H77DnN9Kt+aedl9 ------------------------------------------------------------ revno: 378 committer: Andy Doan branch nick: lava-server timestamp: Thu 2012-06-07 19:09:55 -0500 message: Allow configurable support for OpenID redirect domains on login This allows a site like android-build.linaro.org or snapshots.l.o to point to users to login via the validation website, but then land back on their own website where they show a summary of LAVA results. The configuration can be done in the etc/lava-server/settings.conf file modified: doc/changes.rst lava_server/settings/debian.py --- lp:lava-server https://code.launchpad.net/~linaro-validation/lava-server/trunk You are subscribed to branch lp:lava-server. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription === modified file 'doc/changes.rst' --- doc/changes.rst 2012-05-31 07:01:29 +0000 +++ doc/changes.rst 2012-06-08 00:09:55 +0000 @@ -7,6 +7,7 @@ ============ * Unreleased. +* Added configurable OpenID redirect domain support for login. .. _version_0_14: @@ -39,7 +40,7 @@ ============== * Drop a copy of lava-utils-interface and add a dependency on the external - module. This makes lava-server co-installable with lava-utils-interface + module. This makes lava-server co-installable with lava-utils-interface .. _version_0_11: === modified file 'lava_server/settings/debian.py' --- lava_server/settings/debian.py 2012-04-05 04:28:45 +0000 +++ lava_server/settings/debian.py 2012-06-08 00:09:55 +0000 @@ -68,7 +68,7 @@ # e-mail. SEND_BROKEN_LINK_EMAILS = debian_settings.SEND_BROKEN_LINK_EMAILS -# URL of the login page +# URL of the login page LOGIN_URL = debian_settings.LOGIN_URL # URL of the page you get redirected to after logging in @@ -79,5 +79,9 @@ if debian_settings.get_setting("SERVER_EMAIL"): SERVER_EMAIL = debian_settings.get_setting("SERVER_EMAIL") +# Allow OpenID redirect domains to be configurable +if debian_settings.get_setting("ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS"): + ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS = debian_settings.get_setting("ALLOWED_EXTERNAL_OPENID_REDIRECT_DOMAINS") + # Load extensions loader.contribute_to_settings(locals(), debian_settings)