Add OpenID SSO support.

Configuring OPENID_SSO in gerrit.config will allow the admin
to specify an SSO entry point URL so that users clicking on
"Sign In" are sent directly to that URL.

Change-Id: I361b7b74a6f34a199578620540be31d1df0c5fef
This commit is contained in:
James E. Blair
2011-12-21 18:12:26 +00:00
parent dabf8842d1
commit ca8bc3b22a
9 changed files with 128 additions and 1 deletions

View File

@@ -367,7 +367,8 @@ public class Daemon extends SiteProgram {
}
AuthConfig authConfig = cfgInjector.getInstance(AuthConfig.class);
if (authConfig.getAuthType() == AuthType.OPENID) {
if (authConfig.getAuthType() == AuthType.OPENID ||
authConfig.getAuthType() == AuthType.OPENID_SSO) {
modules.add(new OpenIdModule());
}
modules.add(sysInjector.getInstance(GetUserFilter.Module.class));