Contributors: pfefferle, willnorris
Donate link: https://notiz.blog/donate/
Tags: well-known, discovery, webfinger, JRD, ostatus, activitypub
Requires at least: 4.2
Tested up to: 4.9.8
Stable tag: 3.2.1
License: MIT
License URI: https://opensource.org/licenses/MIT
WebFinger for WordPress
Enables WebFinger (RFC 7033) support for WordPress.
About WebFinger:
WebFinger is used to discover information about people or other entities on the Internet that are identified by a URI using standard Hypertext Transfer Protocol (HTTP) methods over a secure transport. A WebFinger resource returns a JavaScript Object Notation (JSON) object describing the entity that is queried. The JSON object is referred to as the JSON Resource Descriptor (JRD).
(quote from the RFC)
- Upload the
webfinger
-folder to the/wp-content/plugins/
directory - Activate the plugin through the Plugins menu in WordPress
- ...and that's it :)
You can add your own links or properties like that:
function oexchange_target_link( $array ) {
$array["links"][] = array( 'rel' => 'http://oexchange.org/spec/0.8/rel/resident-target',
'href' => 'http://example.com',
'type' => 'application/xrd+xml' );
return $array;
}
add_filter( 'webfinger', 'oexchange_target_link' );
You can add your own links or properties like that:
function render_xrd($webfinger) {
// set custom header();
// JRD to XRD code
exit;
}
add_action( 'webfinger_render', 'render_xrd', 5 );
You can find a detailed example here https://github.com/pfefferle/wordpress-webfinger-legacy
WebFinger is specified as RFC 7033
Please visit http://webfinger.net
This versions drops classic WebFinger support to keep the plugin short and simple. All legacy stuff is bundled in this new plugin https://github.com/pfefferle/wordpress-webfinger-legacy
Project maintained on github at pfefferle/wordpress-webfinger.
- make
acct
protocol optional
- global refactoring
- added
user_nicename
as resource - fixed WordPress coding standard issues
- fixed PHP warning
- updated requirements
- add support for the 'aim', 'ymsgr' and 'acct' protocol
- fixed the legacy code
- added feeds
- fixed 'get_user_by_various' function
- Added WebFinger legacy plugin, because the legacy version is still very popular and used by for example OStatus (Mastodon, Status.NET and GNU Social)
- Added Webfinger for posts support
- composer support
- compatibility updates
get_avatar_url
instead of custom code- some small code improvements
- nicer PHP-docs
- updated version informations
- support the WordPress Coding Standard
- added correct error-responses
- remove legacy support for XRD and host-meta (props to Will Norris)
- small bugfix
- complete refactoring
- removed simple-web-discovery
- more filters and actions
- works without /.well-known/ plugin
- small fixes
- added "webfinger" as well-known uri
- added "rel"-filter (work in progress)
- added more aliases
- added host-meta resource feature (see latest spec)
- added 404 http error if user doesn't exist
- added jrd discovery for host-meta
- fixed an odd problem with lower WordPress versions
- added support for the http://wordpress.org/extend/plugins/extended-profile/ (thanks to Singpolyma)
- api improvements
- basic simple-seb-discovery
- json support
- some small improvements
- some changes to support http://unhosted.org
- OStatus improvements
- Better uri handling
- Identifier overview (more to come)
- Added filters
- Added functions to get a users webfingers
- Added do_action param (for future OStatus plugin)
- Author-Url as Webfinger-Identifier
- Initial release