oauth

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectStartPath    = "/oauth/connect/*"
	ConnectCallbackPath = "/oauth/callback/*"
	DisconnectPath      = "/oauth/disconnect/*"
)

Provider keys can contain slashes (e.g. "app.linear/mcp"), so these routes use a greedy wildcard segment instead of a single-segment :provider param.

View Source
const AuthorizePath = "/oauth/authorize"
View Source
const JWKSPath = "/.well-known/jwks.json"
View Source
const RegisterPath = "/oauth/register"
View Source
const TokenPath = "/oauth/token" // #nosec G101 -- route path, not a credential
View Source
const WellKnownAuthorizationServerPath = "/.well-known/oauth-authorization-server"
View Source
const WellKnownProtectedResourcePath = "/.well-known/oauth-protected-resource"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationServerHandler

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

func NewAuthorizationServerHandler

func NewAuthorizationServerHandler(metadata appoauth.MetadataService) *AuthorizationServerHandler

func (*AuthorizationServerHandler) Handle

func (h *AuthorizationServerHandler) Handle(c *fiber.Ctx) error

type AuthorizeHandler

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

func NewAuthorizeHandler

func NewAuthorizeHandler(proxy appoauth.AuthProxy, gateways resolver.GatewayResolver) *AuthorizeHandler

func (*AuthorizeHandler) Handle

func (h *AuthorizeHandler) Handle(c *fiber.Ctx) error

type CallbackHandler

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

func NewCallbackHandler

func NewCallbackHandler(proxy appoauth.AuthProxy) *CallbackHandler

func (*CallbackHandler) Handle

func (h *CallbackHandler) Handle(c *fiber.Ctx) error

type ConnectHandler

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

func NewConnectHandler

func NewConnectHandler(connect appoauth.ConnectService) *ConnectHandler

func (*ConnectHandler) Callback

func (h *ConnectHandler) Callback(c *fiber.Ctx) error

func (*ConnectHandler) Disconnect

func (h *ConnectHandler) Disconnect(c *fiber.Ctx) error

func (*ConnectHandler) Page

func (h *ConnectHandler) Page(c *fiber.Ctx) error

func (*ConnectHandler) Start

func (h *ConnectHandler) Start(c *fiber.Ctx) error

type JWKSHandler

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

func NewJWKSHandler

func NewJWKSHandler(signer sts.TokenSigner) *JWKSHandler

func (*JWKSHandler) Handle

func (h *JWKSHandler) Handle(c *fiber.Ctx) error

type ProtectedResourceHandler

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

func NewProtectedResourceHandler

func NewProtectedResourceHandler(metadata appoauth.MetadataService) *ProtectedResourceHandler

func (*ProtectedResourceHandler) Handle

func (h *ProtectedResourceHandler) Handle(c *fiber.Ctx) error

type RegisterHandler

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

func NewRegisterHandler

func NewRegisterHandler(metadata appoauth.MetadataService) *RegisterHandler

func (*RegisterHandler) Handle

func (h *RegisterHandler) Handle(c *fiber.Ctx) error

type TokenHandler

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

func NewTokenHandler

func NewTokenHandler(proxy appoauth.AuthProxy, gateways resolver.GatewayResolver) *TokenHandler

func (*TokenHandler) Handle

func (h *TokenHandler) Handle(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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