From 0b70d7d0ceae54ded6379627a180b86273880add Mon Sep 17 00:00:00 2001 From: Dustin Popp Date: Mon, 6 May 2024 11:43:52 -0500 Subject: [PATCH] fix: use correct error variable in external auth case (#217) A typo resulted in a bug that prevents errors from being created in the event of external authenticators. This fixes the issue. Signed-off-by: Dustin Popp --- core/base_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/base_service.go b/core/base_service.go index 8fe9cc7..1a6fe26 100644 --- a/core/base_service.go +++ b/core/base_service.go @@ -398,7 +398,7 @@ func (service *BaseService) Request(req *http.Request, result interface{}) (deta } else { // External authenticators that implement the core interface might return a standard error. // Handle that by wrapping it here. - err = SDKErrorf(err, fmt.Sprintf(ERRORMSG_AUTHENTICATE_ERROR, authErr.Error()), "custom-auth-failed", getComponentInfo()) + err = SDKErrorf(err, fmt.Sprintf(ERRORMSG_AUTHENTICATE_ERROR, authenticateError.Error()), "custom-auth-failed", getComponentInfo()) } return }