You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.2 KiB

  1. <div id="authorization_endpoint">
  2. <h3>Authorization Endpoint</h3>
  3. <p><i>The authorization endpoint tells this app where to direct your browser to sign you in.</i></p>
  4. <?php if($this->authorizationEndpoint): ?>
  5. <div class="bs-callout bs-callout-success">Found your authorization endpoint: <code><?= $this->authorizationEndpoint ?></code></div>
  6. <?php else: ?>
  7. <div class="bs-callout bs-callout-danger">Could not find your authorization endpoint!</div>
  8. <p>You need to set your authorization endpoint in a <code>&lt;link&gt;</code> tag on your home page or in an HTTP header.</p>
  9. <?= partial('partials/auth-endpoint-help') ?>
  10. <?php endif; ?>
  11. </div>
  12. <div id="token_endpoint">
  13. <h3>Token Endpoint</h3>
  14. <p><i>The token endpoint is where this app will make a request to get an access token after obtaining authorization.</i></p>
  15. <?php if($this->tokenEndpoint): ?>
  16. <div class="bs-callout bs-callout-success">Found your token endpoint: <code><?= $this->tokenEndpoint ?></code></div>
  17. <?php else: ?>
  18. <div class="bs-callout bs-callout-danger">Could not find your token endpoint!</div>
  19. <p>You need to set your token endpoint in a <code>&lt;link&gt;</code> tag on your home page or in an HTTP header.</p>
  20. <?= partial('partials/token-endpoint-help') ?>
  21. <?php endif; ?>
  22. </div>
  23. <div id="micropub_endpoint">
  24. <h3>Micropub Endpoint</h3>
  25. <p><i>The Micropub endpoint is the URL this app will use to post new photos.</i></p>
  26. <?php if($this->micropubEndpoint): ?>
  27. <div class="bs-callout bs-callout-success">Found your Micropub endpoint: <code><?= $this->micropubEndpoint ?></code></div>
  28. <?php else: ?>
  29. <div class="bs-callout bs-callout-danger">Could not find your Micropub endpoint!</div>
  30. <p>You need to set your Micropub endpoint in a <code>&lt;link&gt;</code> tag on your home page or in an HTTP header.</p>
  31. <?= partial('partials/micropub-endpoint-help', $this) ?>
  32. <?php endif; ?>
  33. </div>
  34. <?php if($this->authorizationURL): ?>
  35. <h3>Ready!</h3>
  36. <p>Clicking the button below will take you to <strong>your</strong> authorization server which is where you will allow this app to be able to post to your site.</p>
  37. <a href="<?= $this->authorizationURL ?>" class="btn btn-primary">Authorize</a>
  38. <?php endif; ?>