Skip to content

Commit

Permalink
fix: Use correct service key for security proxy auth
Browse files Browse the repository at this point in the history
Signed-off-by: Ginny Guan <[email protected]>
  • Loading branch information
jinlinGuan committed Dec 9, 2024
1 parent 6bbd37b commit dc34042
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions internal/security/proxyauth/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*******************************************************************************
* Copyright 2020 Dell Inc.
* Copyright 2022-2023 IOTech Ltd.
* Copyright 2022-2024 IOTech Ltd.
* Copyright 2023 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -35,10 +35,8 @@ import (
"github.com/labstack/echo/v4"
)

const SecurityProxyAuthServiceKey = "security-proxy-auth"

func Main(ctx context.Context, cancel context.CancelFunc, router *echo.Echo, args []string) {
startupTimer := startup.NewStartUpTimer(common.CoreCommandServiceKey)
startupTimer := startup.NewStartUpTimer(common.SecurityProxyAuthServiceKey)

// All common command-line flags have been moved to DefaultCommonFlags. Service specific flags can be added here,
// by inserting service specific flag prior to call to commonFlags.Parse().
Expand All @@ -63,17 +61,17 @@ func Main(ctx context.Context, cancel context.CancelFunc, router *echo.Echo, arg
ctx,
cancel,
f,
SecurityProxyAuthServiceKey,
common.SecurityProxyAuthServiceKey,
common.ConfigStemSecurity,
configuration,
startupTimer,
dic,
true,
bootstrapConfig.ServiceTypeOther,
[]interfaces.BootstrapHandler{
NewBootstrap(router, SecurityProxyAuthServiceKey).BootstrapHandler,
NewBootstrap(router, common.SecurityProxyAuthServiceKey).BootstrapHandler,
httpServer.BootstrapHandler,
handlers.NewStartMessage(SecurityProxyAuthServiceKey, edgex.Version).BootstrapHandler,
handlers.NewStartMessage(common.SecurityProxyAuthServiceKey, edgex.Version).BootstrapHandler,
})

// code here!
Expand Down

0 comments on commit dc34042

Please sign in to comment.