Skip to main content

authorize_github

Function authorize_github 

Source
pub async fn authorize_github(
    start: &GitHubOAuthStart,
    o: GitHubAuthorizeOptions,
) -> Result<GitHubAuthorization>
Expand description

Sends the person to GitHub to authorize the Chainguard GitHub App and waits for GitHub’s redirect to a loopback port. It is the flow chainctl uses: PKCE with S256, the account picker forced, and the state checked on return. Bound it with tokio::time::timeout.