- You are signed in now and can close this page.
+ Sign-in successful! Returning to
...
+
+ If you're not redirected automatically,
click here or close this page.
An error occurred while signing in:
@@ -23,13 +23,26 @@
diff --git a/extensions/github-authentication/src/flows.ts b/extensions/github-authentication/src/flows.ts
index 8920ea5d357..47107db7069 100644
--- a/extensions/github-authentication/src/flows.ts
+++ b/extensions/github-authentication/src/flows.ts
@@ -121,356 +121,365 @@ async function exchangeCodeForToken(
}
}
-const allFlows: IFlow[] = [
- new class UrlHandlerFlow implements IFlow {
- label = l10n.t('url handler');
- options: IFlowOptions = {
- supportsGitHubDotCom: true,
- // Supporting GHES would be challenging because different versions
- // used a different client ID. We could try to detect the version
- // and use the right one, but that's a lot of work when we have
- // other flows that work well.
- supportsGitHubEnterpriseServer: false,
- supportsHostedGitHubEnterprise: true,
- supportsRemoteExtensionHost: true,
- supportsWebWorkerExtensionHost: true,
- // exchanging a code for a token requires a client secret
- supportsNoClientSecret: false,
- supportsSupportedClients: true,
- supportsUnsupportedClients: false
- };
+class UrlHandlerFlow implements IFlow {
+ label = l10n.t('url handler');
+ options: IFlowOptions = {
+ supportsGitHubDotCom: true,
+ // Supporting GHES would be challenging because different versions
+ // used a different client ID. We could try to detect the version
+ // and use the right one, but that's a lot of work when we have
+ // other flows that work well.
+ supportsGitHubEnterpriseServer: false,
+ supportsHostedGitHubEnterprise: true,
+ supportsRemoteExtensionHost: true,
+ supportsWebWorkerExtensionHost: true,
+ // exchanging a code for a token requires a client secret
+ supportsNoClientSecret: false,
+ supportsSupportedClients: true,
+ supportsUnsupportedClients: false
+ };
- async trigger({
- scopes,
- baseUri,
- redirectUri,
- logger,
- nonce,
- callbackUri,
- uriHandler,
- enterpriseUri,
- existingLogin
- }: IFlowTriggerOptions): Promise