Files
vscode/extensions/github-authentication/media/index.html
Tyler James Leonhardt 31620a3dec Have Loopback Server flow redirect back to VS Code and make it the primary flow (#251333)
* Have Loopback Server flow redirect back to VS Code and make it the primary flow

Fixes https://github.com/microsoft/vscode/issues/250086

* Fix test

* Fix test

* Fix other test
2025-06-13 08:14:41 +02:00

42 lines
1.1 KiB
HTML

<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>GitHub Authentication - Sign In</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="auth.css" />
</head>
<body>
<a class="branding" href="https://code.visualstudio.com/">
Visual Studio Code
</a>
<div class="message-container">
<div class="message">
You are signed in now and can close this page.
</div>
<div class="error-message">
An error occurred while signing in:
<div class="error-text"></div>
</div>
</div>
<script>
var urlParams = new URLSearchParams(window.location.search);
var error = urlParams.get('error');
if (error) {
document.querySelector('.error-text')
.textContent = error;
document.querySelector('body')
.classList.add('error');
} else if (urlParams.get('redirect_uri')) {
setTimeout(() => {
window.location = urlParams.get('redirect_uri');
}, 1000);
}
</script>
</body>
</html>