Browse Source

request profile scope

dependabot/composer/firebase/php-jwt-6.0.0
Aaron Parecki 2 years ago
parent
commit
61552f92fc
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      controllers/auth.php
  2. +2
    -2
      views/auth_start.php

+ 1
- 1
controllers/auth.php View File

@ -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);

+ 2
- 2
views/auth_start.php View File

@ -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>

Loading…
Cancel
Save