Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 1.35 KB

github-oauth-setup.md

File metadata and controls

24 lines (17 loc) · 1.35 KB

GitHub OAuth Setup

You can sign in to your Rocket.Chat workspace by enabling GitHub or GitHub Enterprise OAuth.

Prerequisites

  • A GitHub or GitHub Enterprise account.
  • A GitHub OAuth app and the client ID and secret.
    • If you don't have an app, go to your GitHub Developers Settings, navigate to OAuth Apps, and click New OAuth App.
    • Fill in the required information, including the Authorization callback URL, and save your app.
    • Your Client ID and a button to Generate a new client secret are now displayed. Click the button to generate a new client secret for your OAuth credentials. Copy both the client ID and the secret.

{% hint style="warning" %} If your callback URL is wrong, GitHub does not display any error. Instead of logging in, you receive an error message saying, No matching login attempt found. {% endhint %}

Enable GitHub OAuth

  • Navigate to OAuth settings (Administration > Workspace > Settings > OAuth) in your workspace.
  • In the GitHub tab, enable OAuth and fill in the Client Id and Client Secret you copied earlier.
    • For GitHub Enterprise, add your Server URL also.
  • Click Save changes.

A Sign in with GitHub button appears on your workspace's login page. Users can now Sign in with GitHub by clicking that button!