Commit graph

45 commits

Author SHA1 Message Date
Benjamin Neff
8a8678c97b
Disable forgery protection for ReceiveController
This is enabled by default since rails 5.2, but it doesn't make sense
for the /receive/ routes, because they are called without a session and
without a token.
2022-07-23 02:15:53 +02:00
Benjamin Neff
a0e1cac95f
Add rails 7 support 2022-07-18 02:25:23 +02:00
Benjamin Neff
d5107f5678
Remove legacy Webfinger handling 2021-11-27 03:56:52 +01:00
Benjamin Neff
0163963849
Remove old Slap and EncryptedSlap and cleanup legacy receive
Closes #30
2019-10-30 17:49:45 +01:00
Benjamin Neff
1dfe57ea7e
Add frozen_string_literal to all files
and remove redundant freezes
2019-10-21 03:11:12 +02:00
Benjamin Neff
6e51ae536b
Replace legacy webfinger with new route from .well-known 2017-05-29 00:43:39 +02:00
Benjamin Neff
12cd5b0090
Add route for RFC-7033 webfinger 2017-05-29 00:43:38 +02:00
Benjamin Neff
44f6527d64 use head method instead of :nothing option 2016-08-30 01:18:12 +02:00
Benjamin Neff
be7264b604 bump rubocop 2016-07-13 01:55:13 +02:00
Steffen van Bergerem
e0ab18c0ea
Improve code documentation 2016-07-12 02:08:21 +02:00
Benjamin Neff
1d4d3d732d use shorter callback keys for key-callbacks 2016-03-29 02:42:19 +02:00
Benjamin Neff
4e0c7e205b create attr_reader for payload entity and sender on magic env instance 2016-03-20 17:08:58 +01:00
Benjamin Neff
bfcfb6b95a add fetch controller 2016-03-15 01:30:08 +01:00
Benjamin Neff
f1874f20bd add slap/magic-env switch to the receive-controller 2016-02-14 19:00:43 +01:00
Benjamin Neff
530b534c42 Merge branch 'master' into develop 2016-01-23 03:01:00 +01:00
Benjamin Neff
c4970332eb set locale=en to fix locale leakage from other requests 2016-01-23 02:32:41 +01:00
Benjamin Neff
583d567d67 bump rubocop and pronto-rubocop
make some refactorings for new cops
2016-01-19 01:32:22 +01:00
Benjamin Neff
aa84c4c40e move Receiver to Federation module 2016-01-11 02:30:32 +01:00
Benjamin Neff
127b603558 return 202 after receive 2015-12-30 03:45:18 +01:00
Benjamin Neff
b56c1e2d04 send xml to callbacks to queue it for receive 2015-12-18 00:11:32 +01:00
cmrd Senya
5aac8c2423 Receiving entities support 2015-12-15 19:06:51 +03:00
Benjamin Neff
f4066f6105 rename callbacks 2015-08-04 02:09:14 +02:00
Benjamin Neff
c46cc39b2a fix double if in hcard controller... 2015-08-01 01:09:10 +02:00
Benjamin Neff
03c94bc344 refactor controller when person is not found 2015-07-22 01:30:45 +02:00
Benjamin Neff
09904b54d0 rename WebFinger module to Discovery 2015-07-18 21:57:39 +02:00
Benjamin Neff
ad6d63d7d2 format documentation to fix rubocop warning 2015-07-09 02:50:24 +02:00
Benjamin Neff
6ceddae27b refactor HCard to use the PropertiesDSL 2015-07-08 01:45:57 +02:00
Benjamin Neff
2c50d34370 refactor WebFinger to use the PropertiesDSL 2015-07-08 01:45:57 +02:00
Benjamin Neff
d7c248b94e cleanup: remove double ## everywhere on documentation 2015-07-06 23:49:42 +02:00
Benjamin Neff
99d5ffdc04 use person object with attributes to generate hcard 2015-07-02 02:34:31 +02:00
Benjamin Neff
6e6171fc93 use person object with attributes to generate webfinger 2015-07-02 01:13:27 +02:00
Benjamin Neff
e8d047f9fb add HCardController to deliver the hCard 2015-06-27 23:28:05 +02:00
Benjamin Neff
40cc7d8229 MOAR documentation 2015-06-21 04:40:45 +02:00
Benjamin Neff
2bcf877b5c use webfinger xml generator
- fix: encode rsa key with base64
2015-06-20 23:39:47 +02:00
Benjamin Neff
46295b9c0c add private_class_method again 2015-06-19 04:34:21 +02:00
Benjamin Neff
82eb5415ab cache generated host-meta xml 2015-06-19 02:14:28 +02:00
Benjamin Neff
28694e28cf fix yardoc warnings 2015-06-19 01:30:37 +02:00
Benjamin Neff
914cd06a78 write more documentation 2015-06-19 01:22:43 +02:00
Benjamin Neff
2416a2d9cd remove unused application_helper.rb 2015-06-19 01:22:33 +02:00
Benjamin Neff
0fe6c4dc27 use host-meta xml generator from raven24's gem 2015-06-17 04:45:37 +02:00
Benjamin Neff
96af095d84 fix webfinger using the configured class ... 2015-06-16 02:23:47 +02:00
Benjamin Neff
f0591a745b add basic webfinger stuf (WIP)
and:
- add configure method to set some configs
- write rdoc
2015-06-14 22:13:38 +02:00
Benjamin Neff
069f114eb7 use logger from the application, if available 2015-06-13 19:01:02 +02:00
Benjamin Neff
c497200d03 add basic receive controller
- remove dummy-test
- mount engine on / in dummy-app
2015-06-12 22:10:50 +02:00
Benjamin Neff
d87de1f363 initial commit 2015-06-10 03:13:44 +02:00