summaryrefslogtreecommitdiff
path: root/views/partials
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials')
-rw-r--r--views/partials/auth-endpoint-help.php3
-rw-r--r--views/partials/micropub-endpoint-help.php3
-rw-r--r--views/partials/token-endpoint-help.php6
3 files changed, 12 insertions, 0 deletions
diff --git a/views/partials/auth-endpoint-help.php b/views/partials/auth-endpoint-help.php
new file mode 100644
index 0000000..6378db4
--- /dev/null
+++ b/views/partials/auth-endpoint-help.php
@@ -0,0 +1,3 @@
+ <p>You can create your own authorization endpoint, but it's easier to use an existing service such as <a href="https://indieauth.com/">IndieAuth.com</a>. To delegate to IndieAuth.com, you can use the markup provided below.</p>
+ <p><pre><code>&lt;link rel="authorization_endpoint" href="https://indieauth.com/auth"&gt;</code></pre></p>
+ <p><pre><code>Link: &lt;https://indieauth.com/auth&gt;; rel="authorization_endpoint"</code></pre></p>
diff --git a/views/partials/micropub-endpoint-help.php b/views/partials/micropub-endpoint-help.php
new file mode 100644
index 0000000..35705ca
--- /dev/null
+++ b/views/partials/micropub-endpoint-help.php
@@ -0,0 +1,3 @@
+ <p>You will need to <a href="/creating-a-micropub-endpoint">create a Micropub endpoint</a> for your website which can create posts on your site. Once you've created the Micropub endpoint, you can indicate its location using the markup below.</p>
+ <p><pre><code>&lt;link rel="micropub" href="https://<?= (property_exists($this, 'meParts') ? $this->meParts['host'] : 'example.com') ?>/micropub"&gt;</code></pre></p>
+ <p><pre><code>Link: &lt;https://<?= (property_exists($this, 'meParts') ? $this->meParts['host'] : 'example.com') ?>/micropub&gt;; rel="micropub"</code></pre></p>
diff --git a/views/partials/token-endpoint-help.php b/views/partials/token-endpoint-help.php
new file mode 100644
index 0000000..ea5442e
--- /dev/null
+++ b/views/partials/token-endpoint-help.php
@@ -0,0 +1,6 @@
+ <p>You can <a href="/creating-a-token-endpoint">create your own token endpoint</a> for
+ your website which can issue access tokens when given an authorization code, but
+ it's easier to use an existing service such as <a href="https://tokens.indieauth.com">tokens.indieauth.com</a>.
+ To use this service as your token endpoint, use the markup provided below.</p>
+ <p><pre><code>&lt;link rel="token_endpoint" href="https://tokens.indieauth.com/token"&gt;</code></pre></p>
+ <p><pre><code>Link: &lt;https://tokens.indieauth.com/token&gt;; rel="token_endpoint"</code></pre></p>