More OpenID improvements
This commit is contained in:
+2
-1
@@ -28,7 +28,7 @@ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
|
|||||||
|
|
||||||
# rewrite OpenID clients to YADIS file
|
# rewrite OpenID clients to YADIS file
|
||||||
RewriteCond %{HTTP_ACCEPT} ^application/xrds\+xml [NC]
|
RewriteCond %{HTTP_ACCEPT} ^application/xrds\+xml [NC]
|
||||||
RewriteRule ^$ /yadis.xml [PT]
|
RewriteRule ^$ /yadis.xrds [PT]
|
||||||
|
|
||||||
# block files and folders beginning with a dot, such as .git
|
# block files and folders beginning with a dot, such as .git
|
||||||
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
|
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
|
||||||
@@ -57,6 +57,7 @@ RewriteRule ^(.*) index.php [L]
|
|||||||
# MIME types
|
# MIME types
|
||||||
<IfModule mod_mime.c>
|
<IfModule mod_mime.c>
|
||||||
AddType application/pgp-keys asc
|
AddType application/pgp-keys asc
|
||||||
|
AddType application/xrds+xml xrds
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# compress text file responses
|
# compress text file responses
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<xrds:XRDS xmlns="xri://$xrd*($v*2.0)" xmlns:xrds="xri://$xrds" xmlns:simple="http://xrds-simple.net/core/1.0">
|
|
||||||
<XRD version="2.0">
|
|
||||||
<Service priority="10">
|
|
||||||
<Type>http://specs.openid.net/auth/2.0/signon</Type>
|
|
||||||
<URI>https://id.lukasbestle.com/</URI>
|
|
||||||
<LocalID>https://lukasbestle.com/</LocalID>
|
|
||||||
</Service>
|
|
||||||
<Service priority="20" xmlns:openid="http://openid.net/xmlns/1.0">
|
|
||||||
<Type>http://openid.net/signon/1.0</Type>
|
|
||||||
<URI>https://id.lukasbestle.com/</URI>
|
|
||||||
<openid:Delegate>https://lukasbestle.com/</openid:Delegate>
|
|
||||||
</Service>
|
|
||||||
</XRD>
|
|
||||||
</xrds:XRDS>
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xrds:XRDS xmlns="xri://$xrd*($v*2.0)" xmlns:xrds="xri://$xrds" xmlns:simple="http://xrds-simple.net/core/1.0">
|
||||||
|
<XRD version="2.0">
|
||||||
|
<Service xmlns:openid="http://openid.net/xmlns/1.0">
|
||||||
|
<Type>http://openid.net/signon/1.0</Type>
|
||||||
|
<URI>https://openid.indieauth.com/openid</URI>
|
||||||
|
<openid:Delegate>https://lukasbestle.com/</openid:Delegate>
|
||||||
|
</Service>
|
||||||
|
</XRD>
|
||||||
|
</xrds:XRDS>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return function ($kirby) {
|
||||||
|
$kirby->response()->header('X-XRDS-Location', url('yadis.xrds'));
|
||||||
|
};
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
<title><?= $site->title() ?><?php if(!$page->is('home')): ?> ~ <?= $page->title() ?><?php endif ?></title>
|
<title><?= $site->title() ?><?php if(!$page->is('home')): ?> ~ <?= $page->title() ?><?php endif ?></title>
|
||||||
|
|
||||||
<?php if($page->is('home')): ?>
|
<?php if($page->is('home')): ?>
|
||||||
<link rel="openid.delegate" href="<?= url() ?>">
|
|
||||||
<link rel="openid.server" href="https://openid.indieauth.com/openid">
|
<link rel="openid.server" href="https://openid.indieauth.com/openid">
|
||||||
<link rel="pgpkey" href="<?= url('pgp.asc') ?>">
|
<link rel="pgpkey" href="<?= url('pgp.asc') ?>">
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user