Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oezguercelebi committed Jan 15, 2025
1 parent bea650c commit e4dc349
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ backend:
repo: binary-builders/binary.builders
branch: dev # Specifically targeting the dev branch for v2
base_url: https://binary.builders/v2
auth_endpoint: api/auth
client_id: Ov23liRMIoF49EgraU0t

media_folder: static/images
public_folder: /images
Expand Down
22 changes: 22 additions & 0 deletions static/api/auth/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>Authenticating...</title>
</head>
<body>
<script>
const params = new URLSearchParams(window.location.search);
const code = params.get('code');
if (code) {
window.opener.postMessage(
{
type: 'authorization',
payload: code,
},
window.location.origin
);
window.close();
}
</script>
</body>
</html>

0 comments on commit e4dc349

Please sign in to comment.