Skip to content

Commit

Permalink
add oauth page
Browse files Browse the repository at this point in the history
  • Loading branch information
archiewood committed Oct 24, 2024
1 parent 4849cfa commit bdbc296
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: DuckDB GSheets
include:
- privacy.md
- ./README.md
- oauth.html

exclude:
- "**/*"
Expand Down
24 changes: 24 additions & 0 deletions oauth.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DuckDB GSheets OAuth</title>
</head>
<body>
<h1>DuckDB GSheets OAuth</h1>
<p>Authorization successful! Please copy the code below and paste it into your DuckDB GSheets application:</p>

<div class="label">Authorization Code:</div>
<div id="authCode" class="code-box"></div>

<script>
function getParameterByName(name) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(name);
}

document.getElementById('authCode').textContent = getParameterByName('code') || 'No code found';
</script>
</body>
</html>

0 comments on commit bdbc296

Please sign in to comment.