GET /v1/dashboard/github/start
Starts the owner's GitHub sign-in. Redirects to GitHub with a state and a PKCE challenge, and sets a five-minute cookie that holds the state and verifier.
Auth. None. Anyone can call this route.
Responses
| Status | Meaning | Body |
|---|---|---|
302 | Redirect to GitHub's authorize page | — |
404 | Sign-in is not configured on this server | — |
429 | Too many requests from this client address. Wait the number of seconds in Retry-After, then try again. | Error |
Code samples
Set KEY to your own token first.
curl
curl \
"https://api.sasek.org/ledger/v1/dashboard/github/start"
JavaScript
const res = await fetch("https://api.sasek.org/ledger/v1/dashboard/github/start", {
});
const data = await res.json();
Python
import json
import os
import urllib.request
request = urllib.request.Request(
"https://api.sasek.org/ledger/v1/dashboard/github/start",
method="GET",
)
with urllib.request.urlopen(request) as response:
print(json.load(response))