Skip to main content

Authenticating with a App

Learn how to authenticate with Apps.

About authentication with a App

Your App can authenticate as itself, as an app installation, or on behalf of a user.

Authenticating as a App

You can authenticate as a App in order to generate an installation access token or manage your app.

Authenticating as a App installation

You can make your App authenticate as an installation in order to make API requests that affect resources owned by the account where the app is installed.

Authenticating with a App on behalf of a user

Your App can perform actions on behalf of a user, like creating an issue, posting a comment, or creating a deployment.

Managing private keys for Apps

You can manage private keys to authenticate with your App.

Generating a JSON Web Token (JWT) for a App

Learn how to create a JSON Web Token (JWT) to authenticate to certain REST API endpoints with your App.

Generating an installation access token for a App

Learn how to generate an installation access token for your App.

Generating a user access token for a App

You can generate a user access token for your App in order to attribute app activity to a user.

Refreshing user access tokens

To enforce regular token rotation and reduce the impact of a compromised token, you can configure your App to use user access tokens that expire.

Making authenticated API requests with a App in a Actions workflow

You can use an installation access token from a App to make authenticated API requests in a Actions workflow. You can also pass the token to a custom action to enable the action to make authenticated API requests.