mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix(user): add search query for login name (#4173)
* fix(user): add search query for login name * fix(user): change login name query to IN from EXISTS * fix(loginname): include InQuery into ListQuery with SubSelect as possible datasource * fix(user): apply suggestions from code review Co-authored-by: Livio Spring <livio.a@gmail.com> * fix: correct unit test for search query Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com> Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -85,9 +85,9 @@ func hostFromContext(ctx context.Context, headerName string) (string, error) {
|
||||
return host[0], nil
|
||||
}
|
||||
|
||||
//isAllowedToSendHTTP1Header check if the gRPC call was sent to `localhost`
|
||||
//this is only possible when calling the server directly running on localhost
|
||||
//or through the gRPC gateway
|
||||
// isAllowedToSendHTTP1Header check if the gRPC call was sent to `localhost`
|
||||
// this is only possible when calling the server directly running on localhost
|
||||
// or through the gRPC gateway
|
||||
func isAllowedToSendHTTP1Header(md metadata.MD) bool {
|
||||
authority, ok := md[":authority"]
|
||||
return ok && len(authority) == 1 && strings.Split(authority[0], ":")[0] == "localhost"
|
||||
|
Reference in New Issue
Block a user