mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 14:22:15 +00:00
Merge commit from fork
* fix: sanitize host headers before use * add additional test
This commit is contained in:
@@ -28,7 +28,10 @@ type Instance interface {
|
||||
}
|
||||
|
||||
type InstanceVerifier interface {
|
||||
InstanceByHost(ctx context.Context, host, publicDomain string) (Instance, error)
|
||||
// InstanceByHost returns the instance for the given instanceDomain or publicDomain.
|
||||
// Previously it used the host (hostname[:port]) to find the instance, but is now using the domain (hostname) only.
|
||||
// For preventing issues in backports, the name of the method is not changed.
|
||||
InstanceByHost(ctx context.Context, instanceDomain, publicDomain string) (Instance, error)
|
||||
InstanceByID(ctx context.Context, id string) (Instance, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user