Skip to content

Commit 7c7d7dc

Browse files
committed
feat(oauth): add /oauth/register endpoint for dynamic client registration
Signed-off-by: Tommy Nguyen <tuannvm@hotmail.com>
1 parent aa7dbfb commit 7c7d7dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oauth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func NewServer(cfg *Config) (*Server, error) {
8080
// - /oauth/authorize - Authorization endpoint (proxy mode)
8181
// - /oauth/callback - Callback handler (proxy mode)
8282
// - /oauth/token - Token exchange (proxy mode)
83+
// - /oauth/register - Dynamic client registration
8384
//
8485
// Note: WithOAuth() calls this automatically. Only call directly if using
8586
// NewServer() for advanced use cases.
@@ -90,6 +91,7 @@ func (s *Server) RegisterHandlers(mux *http.ServeMux) {
9091
mux.HandleFunc("/oauth/authorize", s.handler.HandleAuthorize)
9192
mux.HandleFunc("/oauth/callback", s.handler.HandleCallback)
9293
mux.HandleFunc("/oauth/token", s.handler.HandleToken)
94+
mux.HandleFunc("/oauth/register", s.handler.HandleRegister)
9395
mux.HandleFunc("/.well-known/openid-configuration", s.handler.HandleOIDCDiscovery)
9496
}
9597

0 commit comments

Comments
 (0)