summaryrefslogtreecommitdiff
path: root/users/app/views/webfinger/search.xml.erb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-22 15:46:47 +0100
committerAzul <azul@leap.se>2013-01-22 15:46:47 +0100
commit31d18779fe1af0c55b72be7bc554302322025ee5 (patch)
treedcb22beb288851ea645e9e462711f61ce6a697e8 /users/app/views/webfinger/search.xml.erb
parent0d1da13914675790daaf8def26f27017bf2d2a44 (diff)
adding json jrd responses to webfinger
Diffstat (limited to 'users/app/views/webfinger/search.xml.erb')
-rw-r--r--users/app/views/webfinger/search.xml.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/app/views/webfinger/search.xml.erb b/users/app/views/webfinger/search.xml.erb
new file mode 100644
index 0000000..0bcb7e5
--- /dev/null
+++ b/users/app/views/webfinger/search.xml.erb
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
+ <Subject>acct:<%= @subject.email_identifier %></Subject>
+ <Alias>"<%= user_url(@subject.subject) %>"</Alias>
+ <Link rel="public-key" type = 'PGP' href="<%= @subject.key %>"/>
+</XRD>