MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / Server

Struct Server

internal/oauth/server.go:54–58  ·  view source on GitHub ↗

Server is pad's OAuth 2.1 authorization server. It composes fosite handlers over the storage adapter and exposes the fosite.OAuth2Provider that sub-PR C's HTTP handlers consume.

Source from the content-addressed store, hash-verified

52// fosite handlers over the storage adapter and exposes the
53// fosite.OAuth2Provider that sub-PR C's HTTP handlers consume.
54type Server struct {
55 provider fosite.OAuth2Provider
56 cfg Config
57 storage *Storage
58}
59
60// NewServer constructs an OAuth 2.1 authorization server backed by
61// fosite v0.49.0.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected