OpenID plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID openid Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Nov 27, 2013
mailer (version:1.3)
Source Code
Issue Tracking
Open Issues
Kohsuke Kawaguchi (id: kohsuke)
Usage Installations 2013-Apr 747
2013-May 761
2013-Jun 782
2013-Jul 842
2013-Aug 885
2013-Sep 907
2013-Oct 1022
2013-Nov 1023
2013-Dec 994
2014-Jan 1085
2014-Feb 1164
2014-Mar 1246

This plugin lets your Jenkins users login to Jenkins through external OpenID providers, without using password.(Or in the OpenID terminology, this plugin makes Jenkins a relying party.

The plugin has two somewhat different mode of operations:

  1. 'On the side' mode: Keep the existing security realm and just use OpenID as a way to login without typing a password. That is, Jenkins is still taking user/group information from some source (such as Active Directory, LDAP, etc.), and with this plugin useres can now login to their user accounts by associating OpenID with their accounts.
  2. SSO mode: You'll designate one OpenID provider as the authoritative source of the user information in Jenkins. The user must login through this OpenID provider, and the user account will be automatically created and linked to it.

'On the side' mode

This mode is on by default as soon as you install the plugin. In this mode, the user will first associate OpenIDs with their user accounts (by clicking their name on the top right of the page and then "Configure", after logging in normally):

This will initiate a wizard that allows the user to associate OpenIDs to this account. Once this is setup, the user can login to his/her account with this OpenID, without remembering the password:

In this mod "on the side" mode, OpenID is just used as a means to bypass the use of password.

SSO mode

This mode makes Jenkins completely rely on single external OpenID provider as the user realm. Use of OpenID in this mode is no longer just a convenience — you have to "belong" to the configured OpenID provider to be able to login to Jenkins.

First, the administrator will configure the system and designate the OpenID provider:

Here you need to specify which OpenID provider you'll be delegating authentication to. You do this either by specifing the "OpenID Provider Endpoint URL" (as defined by the spec), or by specifying one OpenID identifier and let Jenkins figure out where the OP Endpoint URL is. The latter is often easier as it can be sometimes rather complicated to find out what the actual OP Endpoint URL is.

Once Jenkins is configured this way, the user is automatically sent to this OpenID provider whenever Jenkins determines that the user needs to be authenticated. This includes accessing a protected page and clicking a login link, and it happens without the user clicking a "login with OpenID" button.

Combined with the option in typical OpenID providers to bypass the confirmation dialog after the first login, this creates a single sign-on experience where the user never have to explicitly login to access Jenkins.

Automatic Read Access

By default, users who authenticate via OpenID have no rights, not even the right to see the Jenkins GUI. To grant a right to all OpenID users, add a user "authenticated" and grant them the desired right. Typically this will be Overall/Read.

Team extension support

This implementation supports the OpenID team extension to retrieve group membership information from OpenID providers.

because of the way the protocol works, the group membership information is retrieved on a login. If you are added as a member of a new team, or if you modify ACLs in Jenkins and added a row for a new group, you'll have to relogin for Jenkins to recognize your membership in this new group.

SSO mode configuration ideas

  • If you deny the read access to the anonymous user on your Jenkins, people will automatically get authenticated va OpenID whenever they access Jenkins. This is very convenient to keep track of who's making what changes in Jenkins, but without bothering the user.
  • You can take it one step further, and grant the read access to specific teams in the OpenID provider. This allows you to restrict the use of Jenkins to a subset of those who have identities on the OpenID provider (as opposed to everyone with an account.)

Working with Google Apps

This plugin supports Google Apps as an OpenID provider. Select "Google Apps SSO (with OpenID)" in the UI and type in your domain name. In this way, users must have a valid user account on your domain to be able to login.

Release History

Version 1.6 (Jan 17, 2013)

Version 1.5 (Jul 11, 2012)

  • Added Google Apps support.

Version 1.4 (Oct 27, 2011)

  • Fixed a security vulnerability.

Version 1.3 (Mar 31, 2011)

  • Improved the error diagnosis when the authentication session starts under one host name and then the user is redirected back to another host name, of the same Jenkins.

Version 1.2 (Mar 27, 2011)

Version 1.1 (Feb 11, 2011)

  • Use AX in addition to SReg to retrieve user information (issue #8732)
  • Fixed a bug in the reverse proxy setup (issue #8755)

Version 1.0 (Feb 7, 2011)

  • Initial release


plugin-user plugin-user Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Dec 14, 2011

    Vivek Ayer says:

    This works great mostly. I've set up my web server to forward /jenkins to 8080:/...

    This works great mostly. I've set up my web server to forward /jenkins to 8080:/jenkins via an apache proxy. One annoyance with this plugin is after I login with openid from /jenkins/login, my URL goes to 8080:/jenkins whereas using the internal jenkins login method honors the proxy url and takes me back to /jenkins. Would this be a bug with this plugin? Thanks

  2. Apr 30, 2013

    Dan Zieber says:

    I'm using this with the Google SSO and would like to be able to create users ahe...

    I'm using this with the Google SSO and would like to be able to create users ahead of time (before their first login) to setup permissions.  Is their any prior art out there?