Skip to content

Commit

Permalink
Update setting-up-your-development-environment-to-create-a-github-app…
Browse files Browse the repository at this point in the history
….md (#25061)

Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
  • Loading branch information
edward and cmwilson21 authored May 11, 2023
1 parent 71d743f commit 227b44b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ To make API calls, you'll be using the [Octokit library](http://octokit.github.i
You'll learn about authenticating as an installation in the [next section](#authenticating-as-an-installation).

[AUTOTITLE](/apps/creating-github-apps/authenticating-with-a-github-app/about-authentication-with-a-github-app) lets you do a couple of things:
Authenticating as a GitHub App lets you do a couple of things:

* You can retrieve high-level management information about your GitHub App.
* You can request access tokens for an installation of the app.

For example, you would authenticate as a GitHub App to retrieve a list of the accounts (organization and personal) that have installed your app. But this authentication method doesn't allow you to do much with the API. To access a repository's data and perform operations on behalf of the installation, you need to authenticate as an installation. To do that, you'll need to authenticate as a GitHub App first to request an installation access token.
For example, you would authenticate as a GitHub App to retrieve a list of the accounts (organization and personal) that have installed your app. But this authentication method doesn't allow you to do much with the API. To access a repository's data and perform operations on behalf of the installation, you need to authenticate as an installation. To do that, you'll need to authenticate as a GitHub App first to request an installation access token. For more information, see "[AUTOTITLE](/apps/creating-github-apps/authenticating-with-a-github-app/about-authentication-with-a-github-app)."
Before you can use the Octokit.rb library to make API calls, you'll need to initialize an [Octokit client](http://octokit.github.io/octokit.rb/Octokit/Client.html) authenticated as a GitHub App. The `authenticate_app` helper method does just that!

Expand Down

0 comments on commit 227b44b

Please sign in to comment.