diff options
author | Aaron Parecki <aaron@parecki.com> | 2022-02-13 15:56:43 +0000 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2022-02-13 15:56:43 +0000 |
commit | 61552f92fcf8a33e9796c7ff93d1872ee68d9a2e (patch) | |
tree | cba82749de14ca6d918d23c152cab70cacbd6d5e | |
parent | b1ee2ffe013a4ffaadb790126c8f9578101eba36 (diff) |
request profile scope
-rw-r--r-- | controllers/auth.php | 2 | ||||
-rw-r--r-- | views/auth_start.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/controllers/auth.php b/controllers/auth.php index 0e671b6..50fd15b 100644 --- a/controllers/auth.php +++ b/controllers/auth.php @@ -9,7 +9,7 @@ $app->get('/auth/start', function() use($app) { $params = $req->params(); - $defaultScope = 'create update media'; + $defaultScope = 'create update media profile'; list($authorizationURL, $error) = IndieAuth\Client::begin($params['me'], $defaultScope); diff --git a/views/auth_start.php b/views/auth_start.php index a6df0da..856caec 100644 --- a/views/auth_start.php +++ b/views/auth_start.php @@ -48,8 +48,8 @@ <form action="/auth/redirect" method="get"> <p>Choose the scope to request:</p> <ul style="list-style-type: none;"> - <li><input type="radio" name="scope" value="create update media" checked="checked"> create update media (default)</li> - <li><input type="radio" name="scope" value="create"> create</li> + <li><input type="radio" name="scope" value="profile create update media" checked="checked"> profile create update media (default)</li> + <li><input type="radio" name="scope" value="create"> profile create</li> <li><input type="radio" name="scope" value="post"> post (legacy)</li> </ul> |