Skip to content
Bertrand Roussel edited this page Feb 8, 2018 · 4 revisions

Installation

To build the plugin against 2.10 API, branch stable-2.10 must be used. See build.md for build instructions.

Obtaining provider authorizations

Google

To obtain client-id and client-secret for Google OAuth, go to Google Developers Console:

  • Create a project

    Create a porject

  • Go inside the created project

  • In "APIs & auth"/"Credentials" select "Create new Client ID" and create Client ID for a Web application

    Create Client ID for a Web application

  • Enter additional information about the project, which will be presented to user during the authentication process

    Enter additional information

  • Specify authorized redirect URL: <canonical-web-uri-of-gerrit>/oauth

    Specify authorized redirect URI

After the final step, the page will show generated client id and secret.

Generated id and secret

GitHub

To obtain client-id and client-secret for GitHub OAuth, go to Applications settings in your GitHub account:

  • Select "Register new application" and enter information about the application.

    Note that it is important that authorization callback URL points to <canonical-web-uri-of-gerrit>/oauth.

    Register new application on GitHub

After application is registered, the page will show generated client id and secret.

Generated client id and secret

Office365

Support was added in plugin v2.14.6.1

To obtain client-id and client-secret for Office365 OAuth, go to Application Registration Portal on Microsoft:

  • Go to 'Add an app'

  • Select your app name

  • Generate a new password

  • Use 'Application Id' as client-id and the password as client-secret

  • Click on 'Add Platform' > 'Web'

  • Select 'Allow implicit flow'

  • In 'Redirect URLs', 'Add URL' <canonical-web-uri-of-gerrit>/oauth

Clone this wiki locally