Interface GitHubAuthorizationConfiguration.Builder

  • Method Details

    • authorizationCode

      GitHubAuthorizationConfiguration.Builder authorizationCode(String authorizationCode)

      The OAuth authorization code returned by GitHub after the user authorizes the application.

      Parameters:
      authorizationCode - The OAuth authorization code returned by GitHub after the user authorizes the application.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state returned by GitHub in the OAuth callback. It must be the state that StartIntegrationAuthorization returned to the same AWS account, and the authorization request must have sent that call's codeChallenge. The state can be redeemed once. A stage that enforces authorization sessions rejects a missing, expired, already used, or other-account state with ValidationException; restart the authorization with StartIntegrationAuthorization.

      Parameters:
      state - The state returned by GitHub in the OAuth callback. It must be the state that StartIntegrationAuthorization returned to the same AWS account, and the authorization request must have sent that call's codeChallenge. The state can be redeemed once. A stage that enforces authorization sessions rejects a missing, expired, already used, or other-account state with ValidationException; restart the authorization with StartIntegrationAuthorization.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redirectUrl

      The redirect URL used to obtain the authorization code. Must match one of the redirect URLs registered on the GitHub App. If omitted, the App's default redirect URL is used. Not stored or returned after creation.

      Parameters:
      redirectUrl - The redirect URL used to obtain the authorization code. Must match one of the redirect URLs registered on the GitHub App. If omitted, the App's default redirect URL is used. Not stored or returned after creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.