Skip to content

Commit

Permalink
fix: use correct error variable in external auth case (#217)
Browse files Browse the repository at this point in the history
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 <dpopp07@gmail.com>
  • Loading branch information
dpopp07 committed May 6, 2024
1 parent 54ecde5 commit 0b70d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/base_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0b70d7d

Please sign in to comment.