More OpenID improvements

This commit is contained in:
2020-05-31 21:54:21 +02:00
parent 31b2db51e0
commit 9a4a47bb65
5 changed files with 17 additions and 17 deletions
+2 -1
View File
@@ -28,7 +28,7 @@ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# rewrite OpenID clients to YADIS file
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
# 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
<IfModule mod_mime.c>
AddType application/pgp-keys asc
AddType application/xrds+xml xrds
</IfModule>
# compress text file responses
-15
View File
@@ -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>
+10
View File
@@ -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>