mirror of
https://github.com/openshift/openshift-mcp-server.git
synced 2025-10-17 14:27:48 +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.WithToolHandlerMiddleware(toolCallLoggingMiddleware),
|
||||
)
|
||||
if configuration.StaticConfig.RequireOAuth {
|
||||
if configuration.StaticConfig.RequireOAuth && false { // TODO: Disabled scope auth validation for now
|
||||
serverOptions = append(serverOptions, server.WithToolHandlerMiddleware(toolScopedAuthorizationMiddleware))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user