tree: 1b706ccb21d6df761c5b0ab2126cc29f4443a920 [path history] [tgz]

Okta as Gerrit SAML authentication provider

  • Create a new SAML 2.0 application.
  • Set the following parameters:
    • Single sign on URL:
    • Check “Use this for Recipient URL and Destination URL”.
    • Audience URI (SP Entity Id):
    • We need to set up the attributes in the assertion to send the right information. Here is how to do it with Okta:
      • Application username: “Okta username prefix”
      • Add attribute statement: Name: “DisplayName” with Value “user.displayName”
      • Add attribute statement: Name: “EmailAddress” with Value “”
      • IMPORTANT: If you are not using Okta, you need to set up an attribute “UserName” with the value of the username (not email, without @). If you do not do so, the name will be taken from the NameId provided by the assertion. This is why in Okta we set the application username to “Okta username prefix”.
  • Obtain your IdP metadata (either URL or a local XML file)