Various AT Protocol integrations with obsidian
20
fork

Configure Feed

Select the types of activity you want to include in your feed.

try obsidian uri directly, use beta metadata

+16 -1
+1
.github/workflows/deploy_static.yml
··· 37 37 run: | 38 38 mkdir -p _site 39 39 cp client-metadata.json _site/ 40 + cp client-metadata-beta.json _site/ 40 41 cp oauth-callback.html _site/ 41 42 - name: Upload artifact 42 43 uses: actions/upload-pages-artifact@v3
+14
client-metadata-beta.json
··· 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 + }
+1 -1
src/lib/oauth/oauth.ts
··· 10 10 import { compositeResolver } from 'lib/identity'; 11 11 import { Notice } from 'obsidian'; 12 12 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' }; 14 14 15 15 16 16 export class OAuthHandler {