dpt-github-oauth(1)

dpt-github-oauth1

Generate github oauth2 token

Usage

dpt github-oauth [note-text]

OAuth oauth

Overview

dpt github-oauth can be used for obtaining an OAuth2 token for authenticating to GitHub services without the need to enter your password on every request. The reason for this script is to allow you to populate the "DPT_GITHUB_OAUTH" setting in dpt.conf or ~/.config/dpt.conf easily.

You cannot obtain an OAuth2 token with this script if you have two-factor authentication (2FA) enabled on GitHub.

An alternative method for obtaining the token is to use the GitHub web interface, Applications->Personal Access Tokens.

The token obtained with this program is authorized only for reporting issues.

The only supported argument, note-text, is a short note associated with the token. It is used for easy distinguishing different tokens and their purpose. If not specified, the string "pkg-perl-tools on host $HOSTNAME" is used, where $HOSTNAME is obtained via Sys::Hostname.

The GitHub user name and password are prompted for and can't be supplied as command-line options.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From pkg-perl-tools 0.82 in Debian 13 (Trixie). Parsed by carta from the page's man source.