diff --git a/bskyweb/static/oauth-client-metadata-native.json b/bskyweb/static/oauth-client-metadata-native.json new file mode 100644 index 000000000..cceb1597f --- /dev/null +++ b/bskyweb/static/oauth-client-metadata-native.json @@ -0,0 +1,12 @@ +{ + "client_id": "https://witchsky.app/oauth-client-metadata-native.json", + "client_name": "Witchsky", + "client_uri": "https://witchsky.app", + "redirect_uris": ["app.witchsky:/auth/callback"], + "scope": "atproto transition:generic transition:email transition:chat.bsky identity:handle account:email?action=manage account:status?action=manage", + "token_endpoint_auth_method": "none", + "response_types": ["code"], + "grant_types": ["authorization_code", "refresh_token"], + "application_type": "native", + "dpop_bound_access_tokens": true +} \ No newline at end of file diff --git a/bskyweb/static/oauth-client-metadata.json b/bskyweb/static/oauth-client-metadata.json index 42c6aa394..4139a5267 100644 --- a/bskyweb/static/oauth-client-metadata.json +++ b/bskyweb/static/oauth-client-metadata.json @@ -2,7 +2,7 @@ "client_id": "https://witchsky.app/oauth-client-metadata.json", "client_name": "Witchsky", "client_uri": "https://witchsky.app", - "redirect_uris": ["https://witchsky.app/auth/web/callback"], + "redirect_uris": ["https://witchsky.app/auth/web/callback", "https://canary.witchsky.app/auth/web/callback"], "scope": "atproto transition:generic transition:email transition:chat.bsky identity:handle account:email?action=manage account:status?action=manage", "token_endpoint_auth_method": "none", "response_types": ["code"], diff --git a/justfile b/justfile index ffd574029..a33131959 100644 --- a/justfile +++ b/justfile @@ -40,12 +40,18 @@ postbuild-web: # we need to copy the static iframe html to support youtube embeds cp -r bskyweb/static/iframe/ web-build/iframe + # copy well-known files to support app deeplinks too + cp -r bskyweb/static/.well-known/ web-build/.well-known + # copy files to support oauth + cp bskyweb/static/oauth-client-metadata.json web-build/oauth-client-metadata.json + cp bskyweb/static/oauth-client-metadata-native.json web-build/oauth-client-metadata-native.json - # copy our static pages over! + # copy static info pages over! cp -r witchsky-static-about web-build/about # copy a stylesheet cp src/style.css web-build/style.css + cp src/style.css web-build/static/style.css [group('dev')] dev-android-setup: prebuild-android