1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<?php
// Souverain.ovh
declare(strict_types=1);
require_once __DIR__ . '/lib.php';
header(
'Content-Type: application/json; charset=utf-8'
);
header('Cache-Control: no-store');
header('X-Content-Type-Options: nosniff');
$metadata = [
'client_id' =>
fc_url('/oauth-client-metadata.php'),
'client_name' =>
fc_app_name() . ' — ATProto',
'client_uri' =>
fc_site_origin() . '/',
'redirect_uris' => [
fc_url('/test.html')
],
'grant_types' => [
'authorization_code',
'refresh_token'
],
'response_types' => [
'code'
],
'scope' =>
'atproto ' .
'repo:app.bsky.feed.post?action=create ' .
'rpc:app.bsky.actor.getProfile?' .
'aud=did:web:api.bsky.app#bsky_appview',
'application_type' =>
'web',
'token_endpoint_auth_method' =>
'none',
'dpop_bound_access_tokens' =>
true
];
echo json_encode(
$metadata,
JSON_UNESCAPED_SLASHES |
JSON_UNESCAPED_UNICODE |
JSON_PRETTY_PRINT
);
|