ui/server/src/githubRepoApi
the HTTP surface of "Connect GitHub for private repositories" (repoConnection.mjs holds the token).
Cockpit server, next. Source: ui/server/src/githubRepoApi.mjs.
Variables#
REPO_STATE_COOKIE#
constREPO_STATE_COOKIE:"construct_repo_oauth_state"='construct_repo_oauth_state'
Defined in: ui/server/src/githubRepoApi.mjs:19
Functions#
createGithubRouter()#
createGithubRouter(
__namedParameters):any
Defined in: ui/server/src/githubRepoApi.mjs:83
/api/github/* (below the session gate).
Parameters#
__namedParameters
clientOrigin
any
connections
any
Returns#
any
mountRepoAuthRoutes()#
mountRepoAuthRoutes(
app,__namedParameters):void
Defined in: ui/server/src/githubRepoApi.mjs:25
/auth/repo/* on the app. auth is the createAuth() object (session check, secrets, error page).
Parameters#
app
any
__namedParameters
auth
any
clientOrigin
any
connections
any
Returns#
void