webfinger

package
v0.17.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebfingerBasePath is the base path for serving webfinger
	// lookup requests, minus the .well-known prefix
	WebfingerBasePath = "/webfinger"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(processor *processing.Processor) *Module

func (*Module) Route

func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes)

func (*Module) WebfingerGETRequest

func (m *Module) WebfingerGETRequest(c *gin.Context)

WebfingerGETRequest swagger:operation GET /.well-known/webfinger webfingerGet

Handles webfinger account lookup requests.

For example, a GET to `https://goblin.technology/.well-known/webfinger?resource=acct:tobi@goblin.technology` would return:

```

{"subject":"acct:tobi@goblin.technology","aliases":["https://goblin.technology/users/tobi","https://goblin.technology/@tobi"],"links":[{"rel":"http://webfinger.net/rel/profile-page","type":"text/html","href":"https://goblin.technology/@tobi"},{"rel":"self","type":"application/activity+json","href":"https://goblin.technology/users/tobi"}]}

```

See: https://webfinger.net/

---
tags:
- .well-known

produces:
- application/jrd+json

responses:
	'200':
		schema:
			"$ref": "#/definitions/wellKnownResponse"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL