Module "core/handlers/common/GitHubCredentialsResolver"
Type aliases
ObtainToken
Obtain
Token: (context: HandlerContext, id?: RemoteRepoRef) => Promise<string | undefined>
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>
-
Parameters
-
ctx: HandlerContext
-
id: RemoteRepoRef
Returns Promise<string>
Const ObtainTokenFromIncomingMessage
- ObtainTokenFromIncomingMessage(ctx: HandlerContext): Promise<string>
Const ObtainTokenFromProvider
- ObtainTokenFromProvider(ctx: HandlerContext, id: RemoteRepoRef): Promise<string>
-
Parameters
-
ctx: HandlerContext
-
id: RemoteRepoRef
Returns Promise<string>
fetchTokenByGitHubAppName
- fetchTokenByGitHubAppName(owner: string, ctx: HandlerContext): Promise<string>
-
Parameters
-
owner: string
-
ctx: HandlerContext
Returns Promise<string>
hasToken
- hasToken(token: string): boolean
-
Parameters
Returns boolean
obtainTokenFromConfiguration
Type to implement different strategies to obtain a GitHub token