Skip to content

Commit 610f6cd

Browse files
committed
try obsidian uri directly, use beta metadata
1 parent 501af52 commit 610f6cd

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/deploy_static.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: |
3838
mkdir -p _site
3939
cp client-metadata.json _site/
40+
cp client-metadata-beta.json _site/
4041
cp oauth-callback.html _site/
4142
- name: Upload artifact
4243
uses: actions/upload-pages-artifact@v3

client-metadata-beta.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"client_id": "https://treethought.github.io/obsidian-atmosphere/client-metadata-beta.json",
3+
"client_name": "obsidian-atmosphere-beta",
4+
"client_uri": "https://treethought.github.io/obsidian-atmosphere",
5+
"redirect_uris": [
6+
"obsidian://atmosphere-oauth"
7+
],
8+
"scope": "atproto include:at.margin.authFull repo:site.standard.document repo:network.cosmik.card repo:network.cosmik.collection repo:network.cosmik.collectionLink",
9+
"grant_types": ["authorization_code", "refresh_token"],
10+
"response_types": ["code"],
11+
"token_endpoint_auth_method": "none",
12+
"application_type": "native",
13+
"dpop_bound_access_tokens": true
14+
}

src/lib/oauth/oauth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { compositeResolver } from 'lib/identity';
1111
import { Notice } from 'obsidian';
1212
import { isDid, type ActorIdentifier } from "@atcute/lexicons/syntax";
13-
import metadata from '../../../client-metadata.json' with { type: 'json' };
13+
import metadata from '../../../client-metadata-beta.json' with { type: 'json' };
1414

1515

1616
export class OAuthHandler {

0 commit comments

Comments
 (0)