Module: Roda::RodaPlugins::BridgetownWebfinger

Defined in:
lib/roda/plugins/bridgetown_webfinger.rb

Overview

A plugin that integrates Webfinger behavior into a Bridgetown Roda app

This plugin requires the Bridgetown SSR plugin to be enabled before it.

It reads data from the ‘authors` data for the Bridgetown site to validate author accounts, then extracts the `webfinger` key from the author to build the JSON Resource Descriptor.

Defined Under Namespace

Modules: RequestMethods, ResponseMethods

Class Method Summary collapse

Class Method Details

.configure(app) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

The Roda hook for configuring the plugin

Parameters:

  • app (::Roda)

    the Roda application to configure

Since:

  • 0.1.0



24
25
26
27
28
29
30
31
32
33
# File 'lib/roda/plugins/bridgetown_webfinger.rb', line 24

def self.configure(app)
  return unless app.opts[:bridgetown_site].nil?

  # :nocov: Because it's difficult to set up multiple contexts
  raise(
    "Roda app failure: the bridgetown_ssr plugin must be registered before " \
    "bridgetown_webfinger"
  )
  # :nocov:
end