Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "core/handlers/common/GitHubCredentialsResolver"

Index

Type aliases

ObtainToken

ObtainToken: (context: HandlerContext, id?: RemoteRepoRef) => Promise<string | undefined>

Type to implement different strategies to obtain a GitHub token

Type declaration

    • (context: HandlerContext, id?: RemoteRepoRef): Promise<string | undefined>
    • Parameters

      • context: HandlerContext
      • Optional id: RemoteRepoRef

      Returns Promise<string | undefined>

Functions

Const ObtainTokenFromGitHubApp

  • ObtainTokenFromGitHubApp(ctx: HandlerContext, id: RemoteRepoRef): Promise<string>

Const ObtainTokenFromIncomingMessage

  • ObtainTokenFromIncomingMessage(ctx: HandlerContext): Promise<string>

Const ObtainTokenFromProvider

  • ObtainTokenFromProvider(ctx: HandlerContext, id: RemoteRepoRef): Promise<string>

fetchTokenByGitHubAppName

  • fetchTokenByGitHubAppName(owner: string, ctx: HandlerContext): Promise<string>

fetchTokenByProviderType

hasToken

  • hasToken(token: string): boolean

obtainTokenFromConfiguration

Generated using TypeDoc