mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
chore: Add a comment about config/email JSON tag bug (#2830)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
@@ -368,6 +368,10 @@ type Connector struct {
|
||||
ResourceVersion string `json:"resourceVersion"`
|
||||
// Config holds all the configuration information specific to the connector type. Since there
|
||||
// no generic struct we can use for this purpose, it is stored as a byte stream.
|
||||
//
|
||||
// NOTE: This is a bug. The JSON tag should be `config`.
|
||||
// However, fixing this requires migrating Kubernetes objects for all previously created connectors,
|
||||
// or making Dex reading both tags and act accordingly.
|
||||
Config []byte `json:"email"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user