mirror of
https://github.com/containers/kubernetes-mcp-server.git
synced 2025-10-23 01:22:57 +03:00
refactor(auth): temporarily disable scope authorization (#254)
It's unclear how the scopes are going to be populated in the JWT. Disable scope authorization for the time being. Signed-off-by: Marc Nuri <marc@marcnuri.com>
This commit is contained in:
@@ -62,7 +62,7 @@ func NewServer(configuration Configuration) (*Server, error) {
|
|||||||
server.WithLogging(),
|
server.WithLogging(),
|
||||||
server.WithToolHandlerMiddleware(toolCallLoggingMiddleware),
|
server.WithToolHandlerMiddleware(toolCallLoggingMiddleware),
|
||||||
)
|
)
|
||||||
if configuration.StaticConfig.RequireOAuth {
|
if configuration.StaticConfig.RequireOAuth && false { // TODO: Disabled scope auth validation for now
|
||||||
serverOptions = append(serverOptions, server.WithToolHandlerMiddleware(toolScopedAuthorizationMiddleware))
|
serverOptions = append(serverOptions, server.WithToolHandlerMiddleware(toolScopedAuthorizationMiddleware))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user