idp

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationEndpoint            = "/.idp/auth"
	AuthorizationReturnEndpoint      = "/.idp/auth/:ar_id"
	TokenEndpoint                    = "/.idp/token"
	IntrospectionEndpoint            = "/.idp/introspect"
	RegistrationEndpoint             = "/.idp/register"
	OauthAuthorizationServerEndpoint = "/.well-known/oauth-authorization-server"
	JWKSEndpoint                     = "/.well-known/jwks.json"
)
View Source
const Issuer = "mcp-oauth-proxy"

Variables

This section is empty.

Functions

This section is empty.

Types

type IDPRouter

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

func NewIDPRouter

func NewIDPRouter(
	repo repository.Repository,
	privKey *rsa.PrivateKey,
	logger *zap.Logger,
	externalURL string,
	secret []byte,
	authRouter *auth.AuthRouter,
) (*IDPRouter, error)

func (*IDPRouter) SetupRoutes

func (a *IDPRouter) SetupRoutes(router gin.IRouter)

type Session

type Session struct {
	*fosite.DefaultSession
	JWTClaims *jwt.JWTClaims
	JWTHeader *jwt.Headers
}

func NewJWTSessionWithKey

func NewJWTSessionWithKey(iss string, subject string, privateKey *rsa.PrivateKey) (*Session, error)

func (*Session) Clone

func (s *Session) Clone() fosite.Session

func (*Session) GetJWTClaims

func (s *Session) GetJWTClaims() jwt.JWTClaimsContainer

func (*Session) GetJWTHeader

func (s *Session) GetJWTHeader() *jwt.Headers

Jump to

Keyboard shortcuts

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