Copilot commented on code in PR #312:
URL: https://github.com/apache/answer-plugins/pull/312#discussion_r3013551744


##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"

Review Comment:
   This import path is tied to a personal module name and will not resolve once 
the plugin module path is corrected to match the repository convention 
(`github.com/apache/answer-plugins/connector-vds`). Update imports to use the 
connector’s module path so the package builds inside this repo.



##########
connector-vds/go.mod:
##########
@@ -0,0 +1,60 @@
+module github.com/mike-brown8/answer-connector-furtv/connector-vds

Review Comment:
   The module path is inconsistent with the rest of this repository’s plugins 
(e.g., other connectors use `module 
github.com/apache/answer-plugins/<plugin>`). Keeping a personal module path 
here will break imports/builds when the plugin is consumed from the main 
`apache/answer-plugins` repo. Update the module path to 
`github.com/apache/answer-plugins/connector-vds` and align intra-module imports 
accordingly (e.g., vds.go i18n import).
   ```suggestion
   module github.com/apache/answer-plugins/connector-vds
   ```



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {
+               return nil, fmt.Errorf("code exchange failed: %w", err)
+       }
+
+       return token, nil
+}
+
+// getUserInfo fetches user information from VDS API.
+func (g *Connector) getUserInfo(accessToken string) 
(plugin.ExternalLoginUserInfo, error) {
+       userInfo := plugin.ExternalLoginUserInfo{}
+
+       // Get fresh platform signature for user info request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to get platform signature: 
%w", err)
+       }
+
+       req, err := http.NewRequest("GET", UserInfoURL, nil)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to create userinfo request: 
%w", err)
+       }
+
+       // Set required headers for VDS API
+       req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", platformSig))
+       req.Header.Set("X-OAuth-Access-Token", accessToken)
+
+       client := &http.Client{Timeout: 15 * time.Second}
+       response, err := client.Do(req)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to fetch user info: %w", 
err)
+       }
+       defer response.Body.Close()
+
+       if response.StatusCode != http.StatusOK {
+               body, _ := io.ReadAll(response.Body)
+               return userInfo, fmt.Errorf("userinfo request failed with 
status %d: %s", response.StatusCode, string(body))
+       }
+
+       data, err := io.ReadAll(response.Body)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to read response body: %w", 
err)
+       }
+
+       userInfo.MetaInfo = string(data)
+
+       // Extract user info using hardcoded JSON paths
+       userInfo.ExternalID = gjson.GetBytes(data, UserIDPath).String()
+       if len(userInfo.ExternalID) == 0 {
+               log.Warnf("failed to extract user ID from VDS response")
+               return userInfo, nil
+       }
+
+       userInfo.DisplayName = gjson.GetBytes(data, 
UserDisplayNamePath).String()
+       userInfo.Username = gjson.GetBytes(data, UserUsernamePath).String()
+       userInfo.Email = gjson.GetBytes(data, UserEmailPath).String()
+       userInfo.Avatar = gjson.GetBytes(data, UserAvatarPath).String()
+
+       return userInfo, nil
+}
+
+func (g *Connector) formatUserInfo(userInfo plugin.ExternalLoginUserInfo) 
plugin.ExternalLoginUserInfo {
+       if len(userInfo.Username) == 0 {
+               userInfo.Username = userInfo.ExternalID
+       }
+
+       // Normalize username: replace invalid characters with underscore
+       username := userInfo.Username
+       for i, r := range username {
+               if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= 
'0' && r <= '9') || r == '.' || r == '_' || r == '-') {
+                       username = string([]rune(username[:i])) + "_" + 
string([]rune(username[i+1:]))
+               }
+       }
+
+       // Ensure username length is within valid range (4-30 characters)
+       usernameLength := utf8.RuneCountInString(username)
+       if usernameLength < MinUsernameLength {
+               username = username + strings.Repeat("_", 
MinUsernameLength-usernameLength)
+       } else if usernameLength > MaxUsernameLength {
+               username = string([]rune(username)[:MaxUsernameLength])
+       }
+
+       userInfo.Username = username
+       return userInfo
+}
+
+func (g *Connector) ConfigFields() []plugin.ConfigField {
+       return []plugin.ConfigField{
+               {
+                       Name:     "client_id",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientIDTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypeText,
+                       },
+                       Value: g.Config.ClientID,
+               },
+               {
+                       Name:     "client_secret",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientSecretTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypePassword,
+                       },
+                       Value: g.Config.ClientSecret,
+               },
+       }
+}
+
+func (g *Connector) ConfigReceiver(config []byte) error {
+       c := &ConnectorConfig{}
+       if err := json.Unmarshal(config, c); err != nil {
+               return fmt.Errorf("failed to parse config: %w", err)
+       }
+       if len(c.ClientID) == 0 || len(c.ClientSecret) == 0 {
+               return fmt.Errorf("client_id and client_secret are required")
+       }
+       g.Config = c
+       // Initialize logo cache
+       g.logoDataURI = getLogoDataURI()
+       return nil
+}
+
+// Helper function to generate random strings for OAuth state
+func randomString(length int) string {
+       const charset = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
+       chars := []rune(charset)
+       result := make([]rune, length)
+       for i := range result {
+               result[i] = chars[rand.Intn(len(chars))]
+       }
+       return string(result)
+}
+
+// getLogoDataURICached returns the cached logo data URI
+// If not cached yet, it reads and generates it on the fly
+func (g *Connector) getLogoDataURICached() string {
+       g.mu.RLock()
+       if len(g.logoDataURI) > 0 {
+               defer g.mu.RUnlock()
+               return g.logoDataURI
+       }
+       g.mu.RUnlock()
+
+       // Generate logo on first access (in case ConfigReceiver wasn't called)
+       logoURI := getLogoDataURI()
+       g.mu.Lock()
+       g.logoDataURI = logoURI
+       g.mu.Unlock()
+
+       return logoURI
+}
+
+// getLogoDataURI reads the embedded EMlogo PNG and returns it as a base64 
data URI
+func getLogoDataURI() string {
+       file, err := logoAssets.Open("assets/EMlogo-large1x.png")
+       if err != nil {
+               log.Warnf("failed to open logo: %v", err)
+               return ""
+       }
+       defer file.Close()
+
+       data, err := io.ReadAll(file)
+       if err != nil {
+               log.Warnf("failed to read logo: %v", err)
+               return ""
+       }
+
+       base64Data := base64.StdEncoding.EncodeToString(data)
+       return fmt.Sprintf("data:image/png;base64,%s", base64Data)
+}
+
+// signatureResponse represents the response from VDS signature exchange 
endpoint
+type signatureResponse struct {
+       AccessToken      string `json:"accessToken"`
+       ApiKey           string `json:"apiKey"`
+       TokenType        string `json:"tokenType"`
+       ExpiresInSeconds int    `json:"expiresInSeconds"`
+       AppId            string `json:"appId"`
+}
+
+// getPlatformSignature retrieves and caches the VDS platform signature
+// It implements automatic refresh with retry logic (max 3 attempts)
+// Signature is refreshed when within 3 minutes of expiry (180 seconds)
+func (g *Connector) getPlatformSignature() (string, error) {
+       g.mu.RLock()
+       if !g.signatureExpiry.IsZero() && 
time.Now().Add(3*time.Minute).Before(g.signatureExpiry) {
+               signature := g.platformSignature
+               g.mu.RUnlock()
+               return signature, nil
+       }

Review Comment:
   The signature refresh buffer is applied twice: `requestSignature` subtracts 
3 minutes from the returned expiry, and `getPlatformSignature` also refreshes 
when `now+3m` is before `signatureExpiry`. This effectively refreshes ~6 
minutes before actual expiry (and can reduce cache usefulness). Store the real 
expiry time from `expiresInSeconds` (without subtracting) and keep the `now+3m` 
check, or keep the buffered expiry and change the check to 
`time.Now().Before(signatureExpiry)`.



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {
+               return nil, fmt.Errorf("code exchange failed: %w", err)
+       }
+
+       return token, nil
+}
+
+// getUserInfo fetches user information from VDS API.
+func (g *Connector) getUserInfo(accessToken string) 
(plugin.ExternalLoginUserInfo, error) {
+       userInfo := plugin.ExternalLoginUserInfo{}
+
+       // Get fresh platform signature for user info request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to get platform signature: 
%w", err)
+       }
+
+       req, err := http.NewRequest("GET", UserInfoURL, nil)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to create userinfo request: 
%w", err)
+       }
+
+       // Set required headers for VDS API
+       req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", platformSig))
+       req.Header.Set("X-OAuth-Access-Token", accessToken)
+
+       client := &http.Client{Timeout: 15 * time.Second}
+       response, err := client.Do(req)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to fetch user info: %w", 
err)
+       }
+       defer response.Body.Close()
+
+       if response.StatusCode != http.StatusOK {
+               body, _ := io.ReadAll(response.Body)
+               return userInfo, fmt.Errorf("userinfo request failed with 
status %d: %s", response.StatusCode, string(body))
+       }
+
+       data, err := io.ReadAll(response.Body)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to read response body: %w", 
err)
+       }
+
+       userInfo.MetaInfo = string(data)
+
+       // Extract user info using hardcoded JSON paths
+       userInfo.ExternalID = gjson.GetBytes(data, UserIDPath).String()
+       if len(userInfo.ExternalID) == 0 {
+               log.Warnf("failed to extract user ID from VDS response")
+               return userInfo, nil
+       }
+
+       userInfo.DisplayName = gjson.GetBytes(data, 
UserDisplayNamePath).String()
+       userInfo.Username = gjson.GetBytes(data, UserUsernamePath).String()
+       userInfo.Email = gjson.GetBytes(data, UserEmailPath).String()
+       userInfo.Avatar = gjson.GetBytes(data, UserAvatarPath).String()
+
+       return userInfo, nil
+}
+
+func (g *Connector) formatUserInfo(userInfo plugin.ExternalLoginUserInfo) 
plugin.ExternalLoginUserInfo {
+       if len(userInfo.Username) == 0 {
+               userInfo.Username = userInfo.ExternalID
+       }
+
+       // Normalize username: replace invalid characters with underscore
+       username := userInfo.Username
+       for i, r := range username {
+               if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= 
'0' && r <= '9') || r == '.' || r == '_' || r == '-') {
+                       username = string([]rune(username[:i])) + "_" + 
string([]rune(username[i+1:]))
+               }
+       }
+
+       // Ensure username length is within valid range (4-30 characters)
+       usernameLength := utf8.RuneCountInString(username)
+       if usernameLength < MinUsernameLength {
+               username = username + strings.Repeat("_", 
MinUsernameLength-usernameLength)
+       } else if usernameLength > MaxUsernameLength {
+               username = string([]rune(username)[:MaxUsernameLength])
+       }
+
+       userInfo.Username = username
+       return userInfo
+}
+
+func (g *Connector) ConfigFields() []plugin.ConfigField {
+       return []plugin.ConfigField{
+               {
+                       Name:     "client_id",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientIDTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypeText,
+                       },
+                       Value: g.Config.ClientID,
+               },
+               {
+                       Name:     "client_secret",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientSecretTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypePassword,
+                       },
+                       Value: g.Config.ClientSecret,
+               },
+       }
+}
+
+func (g *Connector) ConfigReceiver(config []byte) error {
+       c := &ConnectorConfig{}
+       if err := json.Unmarshal(config, c); err != nil {
+               return fmt.Errorf("failed to parse config: %w", err)
+       }
+       if len(c.ClientID) == 0 || len(c.ClientSecret) == 0 {
+               return fmt.Errorf("client_id and client_secret are required")
+       }
+       g.Config = c
+       // Initialize logo cache
+       g.logoDataURI = getLogoDataURI()
+       return nil
+}
+
+// Helper function to generate random strings for OAuth state
+func randomString(length int) string {
+       const charset = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
+       chars := []rune(charset)
+       result := make([]rune, length)
+       for i := range result {
+               result[i] = chars[rand.Intn(len(chars))]
+       }
+       return string(result)
+}
+
+// getLogoDataURICached returns the cached logo data URI
+// If not cached yet, it reads and generates it on the fly
+func (g *Connector) getLogoDataURICached() string {
+       g.mu.RLock()
+       if len(g.logoDataURI) > 0 {
+               defer g.mu.RUnlock()
+               return g.logoDataURI
+       }
+       g.mu.RUnlock()
+
+       // Generate logo on first access (in case ConfigReceiver wasn't called)
+       logoURI := getLogoDataURI()
+       g.mu.Lock()
+       g.logoDataURI = logoURI
+       g.mu.Unlock()
+
+       return logoURI
+}
+
+// getLogoDataURI reads the embedded EMlogo PNG and returns it as a base64 
data URI
+func getLogoDataURI() string {
+       file, err := logoAssets.Open("assets/EMlogo-large1x.png")
+       if err != nil {
+               log.Warnf("failed to open logo: %v", err)
+               return ""
+       }
+       defer file.Close()
+
+       data, err := io.ReadAll(file)
+       if err != nil {
+               log.Warnf("failed to read logo: %v", err)
+               return ""
+       }
+
+       base64Data := base64.StdEncoding.EncodeToString(data)
+       return fmt.Sprintf("data:image/png;base64,%s", base64Data)
+}
+
+// signatureResponse represents the response from VDS signature exchange 
endpoint
+type signatureResponse struct {
+       AccessToken      string `json:"accessToken"`
+       ApiKey           string `json:"apiKey"`
+       TokenType        string `json:"tokenType"`
+       ExpiresInSeconds int    `json:"expiresInSeconds"`
+       AppId            string `json:"appId"`
+}
+
+// getPlatformSignature retrieves and caches the VDS platform signature
+// It implements automatic refresh with retry logic (max 3 attempts)
+// Signature is refreshed when within 3 minutes of expiry (180 seconds)
+func (g *Connector) getPlatformSignature() (string, error) {
+       g.mu.RLock()
+       if !g.signatureExpiry.IsZero() && 
time.Now().Add(3*time.Minute).Before(g.signatureExpiry) {
+               signature := g.platformSignature
+               g.mu.RUnlock()
+               return signature, nil
+       }
+       g.mu.RUnlock()
+
+       // Signature expired or not cached, request new one
+       var lastErr error
+       for attempt := 1; attempt <= 3; attempt++ {
+               signature, expiry, err := g.requestSignature()
+               if err == nil {
+                       g.mu.Lock()
+                       g.platformSignature = signature
+                       g.signatureExpiry = expiry
+                       g.mu.Unlock()
+                       log.Debugf("[VDS Connector] Successfully obtained 
platform signature (attempt %d)", attempt)
+                       return signature, nil
+               }
+               lastErr = err
+               log.Warnf("[VDS Connector] Failed to obtain platform signature 
(attempt %d/%d): %v", attempt, 3, err)
+               if attempt < 3 {
+                       time.Sleep(time.Duration(attempt) * time.Second) // 
exponential backoff
+               }
+       }
+
+       return "", fmt.Errorf("failed to obtain platform signature after 3 
attempts: %w", lastErr)
+}
+
+// requestSignature makes an HTTP request to VDS /api/auth/token endpoint
+func (g *Connector) requestSignature() (string, time.Time, error) {
+       payload := map[string]string{
+               "clientId":     g.Config.ClientID,
+               "clientSecret": g.Config.ClientSecret,
+       }
+
+       jsonData, err := json.Marshal(payload)
+       if err != nil {
+               return "", time.Time{}, fmt.Errorf("failed to marshal signature 
request: %w", err)
+       }
+
+       req, err := http.NewRequest("POST", SignatureURL, 
strings.NewReader(string(jsonData)))
+       if err != nil {
+               return "", time.Time{}, fmt.Errorf("failed to create signature 
request: %w", err)

Review Comment:
   `requestSignature` marshals JSON to `[]byte` and then converts it to 
`string` just to create a `strings.NewReader`. This adds an unnecessary 
allocation/copy. Prefer `bytes.NewReader(jsonData)` (or 
`bytes.NewBuffer(jsonData)`) to send the marshaled bytes directly.



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {
+               return nil, fmt.Errorf("code exchange failed: %w", err)
+       }
+
+       return token, nil
+}
+
+// getUserInfo fetches user information from VDS API.
+func (g *Connector) getUserInfo(accessToken string) 
(plugin.ExternalLoginUserInfo, error) {
+       userInfo := plugin.ExternalLoginUserInfo{}
+
+       // Get fresh platform signature for user info request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to get platform signature: 
%w", err)
+       }
+
+       req, err := http.NewRequest("GET", UserInfoURL, nil)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to create userinfo request: 
%w", err)
+       }
+
+       // Set required headers for VDS API
+       req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", platformSig))
+       req.Header.Set("X-OAuth-Access-Token", accessToken)
+
+       client := &http.Client{Timeout: 15 * time.Second}
+       response, err := client.Do(req)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to fetch user info: %w", 
err)
+       }
+       defer response.Body.Close()
+
+       if response.StatusCode != http.StatusOK {
+               body, _ := io.ReadAll(response.Body)
+               return userInfo, fmt.Errorf("userinfo request failed with 
status %d: %s", response.StatusCode, string(body))
+       }
+
+       data, err := io.ReadAll(response.Body)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to read response body: %w", 
err)
+       }
+
+       userInfo.MetaInfo = string(data)
+
+       // Extract user info using hardcoded JSON paths
+       userInfo.ExternalID = gjson.GetBytes(data, UserIDPath).String()
+       if len(userInfo.ExternalID) == 0 {
+               log.Warnf("failed to extract user ID from VDS response")
+               return userInfo, nil
+       }
+
+       userInfo.DisplayName = gjson.GetBytes(data, 
UserDisplayNamePath).String()
+       userInfo.Username = gjson.GetBytes(data, UserUsernamePath).String()
+       userInfo.Email = gjson.GetBytes(data, UserEmailPath).String()
+       userInfo.Avatar = gjson.GetBytes(data, UserAvatarPath).String()
+
+       return userInfo, nil
+}
+
+func (g *Connector) formatUserInfo(userInfo plugin.ExternalLoginUserInfo) 
plugin.ExternalLoginUserInfo {
+       if len(userInfo.Username) == 0 {
+               userInfo.Username = userInfo.ExternalID
+       }
+
+       // Normalize username: replace invalid characters with underscore
+       username := userInfo.Username
+       for i, r := range username {
+               if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= 
'0' && r <= '9') || r == '.' || r == '_' || r == '-') {
+                       username = string([]rune(username[:i])) + "_" + 
string([]rune(username[i+1:]))
+               }
+       }
+
+       // Ensure username length is within valid range (4-30 characters)
+       usernameLength := utf8.RuneCountInString(username)
+       if usernameLength < MinUsernameLength {
+               username = username + strings.Repeat("_", 
MinUsernameLength-usernameLength)
+       } else if usernameLength > MaxUsernameLength {
+               username = string([]rune(username)[:MaxUsernameLength])
+       }
+
+       userInfo.Username = username
+       return userInfo
+}
+
+func (g *Connector) ConfigFields() []plugin.ConfigField {
+       return []plugin.ConfigField{
+               {
+                       Name:     "client_id",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientIDTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypeText,
+                       },
+                       Value: g.Config.ClientID,
+               },
+               {
+                       Name:     "client_secret",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientSecretTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypePassword,
+                       },
+                       Value: g.Config.ClientSecret,
+               },
+       }
+}
+
+func (g *Connector) ConfigReceiver(config []byte) error {
+       c := &ConnectorConfig{}
+       if err := json.Unmarshal(config, c); err != nil {
+               return fmt.Errorf("failed to parse config: %w", err)
+       }
+       if len(c.ClientID) == 0 || len(c.ClientSecret) == 0 {
+               return fmt.Errorf("client_id and client_secret are required")
+       }
+       g.Config = c
+       // Initialize logo cache
+       g.logoDataURI = getLogoDataURI()
+       return nil
+}
+
+// Helper function to generate random strings for OAuth state
+func randomString(length int) string {
+       const charset = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
+       chars := []rune(charset)
+       result := make([]rune, length)
+       for i := range result {
+               result[i] = chars[rand.Intn(len(chars))]
+       }
+       return string(result)
+}

Review Comment:
   `randomString` uses `math/rand` (not cryptographically secure, and not 
seeded here), but it is used for generating the OAuth `state` value. For CSRF 
protection the `state` should be generated with `crypto/rand` (or a shared 
token helper) and then validated on callback; otherwise the state is 
predictable and provides no protection.



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()

Review Comment:
   `ConnectorLogoSVG` currently returns a PNG data URI 
(`data:image/png;base64,...`). In this repo, connectors typically return either 
raw SVG content or a base64-encoded SVG string (without a `data:` prefix) from 
`ConnectorLogoSVG` (see connector-github/connector-dingtalk). Returning a PNG 
data URI may not render correctly if the UI assumes SVG/base64. Consider 
embedding an SVG asset (or converting the PNG to SVG) and returning it in the 
expected format, or confirm the UI supports `data:image/png` here.
   ```suggestion
        // Return raw SVG content as expected by the UI and other connectors.
        return `<svg xmlns="http://www.w3.org/2000/svg"; width="120" height="32" 
viewBox="0 0 120 32">
   <defs>
     <linearGradient id="vdsGradient" x1="0%" y1="0%" x2="100%" y2="0%">
       <stop offset="0%" stop-color="#0052CC"/>
       <stop offset="100%" stop-color="#2684FF"/>
     </linearGradient>
   </defs>
   <rect x="1" y="1" width="118" height="30" rx="6" ry="6" 
fill="url(#vdsGradient)" />
   <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle"
         font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
sans-serif"
         font-size="16" font-weight="600" fill="#FFFFFF">
     VDS
   </text>
   </svg>`
   ```



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}

Review Comment:
   `ConnectorSender` generates an OAuth `state` but `ConnectorReceiver` never 
validates it (and there’s no persistence of the expected value). This defeats 
the CSRF protection that `state` is intended to provide. Consider storing the 
generated state in a short-lived cache keyed to the user/session (see 
`user-center-slack` which caches and validates `oauth_state_*`) and verify 
`ctx.Query("state")` in `ConnectorReceiver`.



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {
+               return nil, fmt.Errorf("code exchange failed: %w", err)
+       }
+
+       return token, nil
+}
+
+// getUserInfo fetches user information from VDS API.
+func (g *Connector) getUserInfo(accessToken string) 
(plugin.ExternalLoginUserInfo, error) {
+       userInfo := plugin.ExternalLoginUserInfo{}
+
+       // Get fresh platform signature for user info request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to get platform signature: 
%w", err)
+       }
+
+       req, err := http.NewRequest("GET", UserInfoURL, nil)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to create userinfo request: 
%w", err)
+       }
+
+       // Set required headers for VDS API
+       req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", platformSig))
+       req.Header.Set("X-OAuth-Access-Token", accessToken)
+
+       client := &http.Client{Timeout: 15 * time.Second}
+       response, err := client.Do(req)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to fetch user info: %w", 
err)
+       }
+       defer response.Body.Close()
+
+       if response.StatusCode != http.StatusOK {
+               body, _ := io.ReadAll(response.Body)
+               return userInfo, fmt.Errorf("userinfo request failed with 
status %d: %s", response.StatusCode, string(body))
+       }
+
+       data, err := io.ReadAll(response.Body)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to read response body: %w", 
err)
+       }
+
+       userInfo.MetaInfo = string(data)
+
+       // Extract user info using hardcoded JSON paths
+       userInfo.ExternalID = gjson.GetBytes(data, UserIDPath).String()
+       if len(userInfo.ExternalID) == 0 {
+               log.Warnf("failed to extract user ID from VDS response")
+               return userInfo, nil
+       }
+
+       userInfo.DisplayName = gjson.GetBytes(data, 
UserDisplayNamePath).String()
+       userInfo.Username = gjson.GetBytes(data, UserUsernamePath).String()
+       userInfo.Email = gjson.GetBytes(data, UserEmailPath).String()
+       userInfo.Avatar = gjson.GetBytes(data, UserAvatarPath).String()
+
+       return userInfo, nil
+}
+
+func (g *Connector) formatUserInfo(userInfo plugin.ExternalLoginUserInfo) 
plugin.ExternalLoginUserInfo {
+       if len(userInfo.Username) == 0 {
+               userInfo.Username = userInfo.ExternalID
+       }
+
+       // Normalize username: replace invalid characters with underscore
+       username := userInfo.Username
+       for i, r := range username {
+               if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= 
'0' && r <= '9') || r == '.' || r == '_' || r == '-') {
+                       username = string([]rune(username[:i])) + "_" + 
string([]rune(username[i+1:]))
+               }
+       }

Review Comment:
   This username normalization mutates `username` while iterating over it with 
`for i, r := range username`. Because `i` is a byte index into the *original* 
string, and the code slices `username[:i]` / `username[i+1:]` after 
modifications, it can skip characters or corrupt multi-byte UTF-8 sequences. 
Prefer operating on a `[]rune` copy (replace invalid runes in-place) or reuse 
the existing Answer helper used in `connector-basic` 
(`checker.IsInvalidUsername` + a regexp replacement).



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {
+               return nil, fmt.Errorf("code exchange failed: %w", err)
+       }
+
+       return token, nil
+}
+
+// getUserInfo fetches user information from VDS API.
+func (g *Connector) getUserInfo(accessToken string) 
(plugin.ExternalLoginUserInfo, error) {
+       userInfo := plugin.ExternalLoginUserInfo{}
+
+       // Get fresh platform signature for user info request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to get platform signature: 
%w", err)
+       }
+
+       req, err := http.NewRequest("GET", UserInfoURL, nil)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to create userinfo request: 
%w", err)
+       }
+
+       // Set required headers for VDS API
+       req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", platformSig))
+       req.Header.Set("X-OAuth-Access-Token", accessToken)
+
+       client := &http.Client{Timeout: 15 * time.Second}
+       response, err := client.Do(req)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to fetch user info: %w", 
err)
+       }
+       defer response.Body.Close()
+
+       if response.StatusCode != http.StatusOK {
+               body, _ := io.ReadAll(response.Body)
+               return userInfo, fmt.Errorf("userinfo request failed with 
status %d: %s", response.StatusCode, string(body))
+       }
+
+       data, err := io.ReadAll(response.Body)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to read response body: %w", 
err)
+       }
+
+       userInfo.MetaInfo = string(data)
+
+       // Extract user info using hardcoded JSON paths
+       userInfo.ExternalID = gjson.GetBytes(data, UserIDPath).String()
+       if len(userInfo.ExternalID) == 0 {
+               log.Warnf("failed to extract user ID from VDS response")
+               return userInfo, nil
+       }
+
+       userInfo.DisplayName = gjson.GetBytes(data, 
UserDisplayNamePath).String()
+       userInfo.Username = gjson.GetBytes(data, UserUsernamePath).String()
+       userInfo.Email = gjson.GetBytes(data, UserEmailPath).String()
+       userInfo.Avatar = gjson.GetBytes(data, UserAvatarPath).String()
+
+       return userInfo, nil
+}
+
+func (g *Connector) formatUserInfo(userInfo plugin.ExternalLoginUserInfo) 
plugin.ExternalLoginUserInfo {
+       if len(userInfo.Username) == 0 {
+               userInfo.Username = userInfo.ExternalID
+       }
+
+       // Normalize username: replace invalid characters with underscore
+       username := userInfo.Username
+       for i, r := range username {
+               if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= 
'0' && r <= '9') || r == '.' || r == '_' || r == '-') {
+                       username = string([]rune(username[:i])) + "_" + 
string([]rune(username[i+1:]))
+               }
+       }
+
+       // Ensure username length is within valid range (4-30 characters)
+       usernameLength := utf8.RuneCountInString(username)
+       if usernameLength < MinUsernameLength {
+               username = username + strings.Repeat("_", 
MinUsernameLength-usernameLength)
+       } else if usernameLength > MaxUsernameLength {
+               username = string([]rune(username)[:MaxUsernameLength])
+       }
+
+       userInfo.Username = username
+       return userInfo
+}
+
+func (g *Connector) ConfigFields() []plugin.ConfigField {
+       return []plugin.ConfigField{
+               {
+                       Name:     "client_id",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientIDTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypeText,
+                       },
+                       Value: g.Config.ClientID,
+               },
+               {
+                       Name:     "client_secret",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientSecretTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypePassword,
+                       },
+                       Value: g.Config.ClientSecret,
+               },
+       }
+}
+
+func (g *Connector) ConfigReceiver(config []byte) error {
+       c := &ConnectorConfig{}
+       if err := json.Unmarshal(config, c); err != nil {
+               return fmt.Errorf("failed to parse config: %w", err)
+       }
+       if len(c.ClientID) == 0 || len(c.ClientSecret) == 0 {
+               return fmt.Errorf("client_id and client_secret are required")
+       }
+       g.Config = c
+       // Initialize logo cache
+       g.logoDataURI = getLogoDataURI()
+       return nil
+}
+
+// Helper function to generate random strings for OAuth state
+func randomString(length int) string {
+       const charset = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
+       chars := []rune(charset)
+       result := make([]rune, length)
+       for i := range result {
+               result[i] = chars[rand.Intn(len(chars))]
+       }
+       return string(result)
+}
+
+// getLogoDataURICached returns the cached logo data URI
+// If not cached yet, it reads and generates it on the fly
+func (g *Connector) getLogoDataURICached() string {
+       g.mu.RLock()
+       if len(g.logoDataURI) > 0 {
+               defer g.mu.RUnlock()
+               return g.logoDataURI
+       }
+       g.mu.RUnlock()
+
+       // Generate logo on first access (in case ConfigReceiver wasn't called)
+       logoURI := getLogoDataURI()
+       g.mu.Lock()
+       g.logoDataURI = logoURI
+       g.mu.Unlock()
+
+       return logoURI
+}
+
+// getLogoDataURI reads the embedded EMlogo PNG and returns it as a base64 
data URI
+func getLogoDataURI() string {
+       file, err := logoAssets.Open("assets/EMlogo-large1x.png")
+       if err != nil {
+               log.Warnf("failed to open logo: %v", err)
+               return ""
+       }
+       defer file.Close()
+
+       data, err := io.ReadAll(file)
+       if err != nil {
+               log.Warnf("failed to read logo: %v", err)
+               return ""
+       }
+
+       base64Data := base64.StdEncoding.EncodeToString(data)
+       return fmt.Sprintf("data:image/png;base64,%s", base64Data)
+}
+
+// signatureResponse represents the response from VDS signature exchange 
endpoint
+type signatureResponse struct {
+       AccessToken      string `json:"accessToken"`
+       ApiKey           string `json:"apiKey"`
+       TokenType        string `json:"tokenType"`
+       ExpiresInSeconds int    `json:"expiresInSeconds"`
+       AppId            string `json:"appId"`
+}
+
+// getPlatformSignature retrieves and caches the VDS platform signature
+// It implements automatic refresh with retry logic (max 3 attempts)
+// Signature is refreshed when within 3 minutes of expiry (180 seconds)
+func (g *Connector) getPlatformSignature() (string, error) {
+       g.mu.RLock()
+       if !g.signatureExpiry.IsZero() && 
time.Now().Add(3*time.Minute).Before(g.signatureExpiry) {
+               signature := g.platformSignature
+               g.mu.RUnlock()
+               return signature, nil
+       }
+       g.mu.RUnlock()
+
+       // Signature expired or not cached, request new one
+       var lastErr error
+       for attempt := 1; attempt <= 3; attempt++ {
+               signature, expiry, err := g.requestSignature()
+               if err == nil {
+                       g.mu.Lock()
+                       g.platformSignature = signature
+                       g.signatureExpiry = expiry
+                       g.mu.Unlock()
+                       log.Debugf("[VDS Connector] Successfully obtained 
platform signature (attempt %d)", attempt)
+                       return signature, nil

Review Comment:
   When the cached signature is expired, multiple concurrent requests can all 
pass the initial RLock check and trigger parallel `requestSignature()` calls 
(thundering herd). This can cause avoidable load/spikes against the VDS auth 
endpoint. Consider adding a singleflight (or a dedicated mutex + double-check 
inside the write lock) around refresh so only one goroutine refreshes the 
signature at a time.



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {
+               return nil, fmt.Errorf("code exchange failed: %w", err)
+       }
+
+       return token, nil
+}
+
+// getUserInfo fetches user information from VDS API.
+func (g *Connector) getUserInfo(accessToken string) 
(plugin.ExternalLoginUserInfo, error) {
+       userInfo := plugin.ExternalLoginUserInfo{}
+
+       // Get fresh platform signature for user info request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to get platform signature: 
%w", err)
+       }
+
+       req, err := http.NewRequest("GET", UserInfoURL, nil)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to create userinfo request: 
%w", err)
+       }
+
+       // Set required headers for VDS API
+       req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", platformSig))
+       req.Header.Set("X-OAuth-Access-Token", accessToken)
+
+       client := &http.Client{Timeout: 15 * time.Second}
+       response, err := client.Do(req)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to fetch user info: %w", 
err)
+       }
+       defer response.Body.Close()
+
+       if response.StatusCode != http.StatusOK {
+               body, _ := io.ReadAll(response.Body)
+               return userInfo, fmt.Errorf("userinfo request failed with 
status %d: %s", response.StatusCode, string(body))
+       }
+
+       data, err := io.ReadAll(response.Body)
+       if err != nil {
+               return userInfo, fmt.Errorf("failed to read response body: %w", 
err)
+       }
+
+       userInfo.MetaInfo = string(data)
+
+       // Extract user info using hardcoded JSON paths
+       userInfo.ExternalID = gjson.GetBytes(data, UserIDPath).String()
+       if len(userInfo.ExternalID) == 0 {
+               log.Warnf("failed to extract user ID from VDS response")
+               return userInfo, nil
+       }
+
+       userInfo.DisplayName = gjson.GetBytes(data, 
UserDisplayNamePath).String()
+       userInfo.Username = gjson.GetBytes(data, UserUsernamePath).String()
+       userInfo.Email = gjson.GetBytes(data, UserEmailPath).String()
+       userInfo.Avatar = gjson.GetBytes(data, UserAvatarPath).String()
+
+       return userInfo, nil
+}
+
+func (g *Connector) formatUserInfo(userInfo plugin.ExternalLoginUserInfo) 
plugin.ExternalLoginUserInfo {
+       if len(userInfo.Username) == 0 {
+               userInfo.Username = userInfo.ExternalID
+       }
+
+       // Normalize username: replace invalid characters with underscore
+       username := userInfo.Username
+       for i, r := range username {
+               if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= 
'0' && r <= '9') || r == '.' || r == '_' || r == '-') {
+                       username = string([]rune(username[:i])) + "_" + 
string([]rune(username[i+1:]))
+               }
+       }
+
+       // Ensure username length is within valid range (4-30 characters)
+       usernameLength := utf8.RuneCountInString(username)
+       if usernameLength < MinUsernameLength {
+               username = username + strings.Repeat("_", 
MinUsernameLength-usernameLength)
+       } else if usernameLength > MaxUsernameLength {
+               username = string([]rune(username)[:MaxUsernameLength])
+       }
+
+       userInfo.Username = username
+       return userInfo
+}
+
+func (g *Connector) ConfigFields() []plugin.ConfigField {
+       return []plugin.ConfigField{
+               {
+                       Name:     "client_id",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientIDTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypeText,
+                       },
+                       Value: g.Config.ClientID,
+               },
+               {
+                       Name:     "client_secret",
+                       Type:     plugin.ConfigTypeInput,
+                       Title:    
plugin.MakeTranslator(i18n.ConfigClientSecretTitle),
+                       Required: true,
+                       UIOptions: plugin.ConfigFieldUIOptions{
+                               InputType: plugin.InputTypePassword,
+                       },
+                       Value: g.Config.ClientSecret,
+               },
+       }

Review Comment:
   The i18n files define `description` strings for these config fields, but the 
`ConfigField` entries don’t set `Description`, so the UI won’t show the help 
text. Add `Description: plugin.MakeTranslator(i18n.ConfigClientIDDescription)` 
/ `ConfigClientSecretDescription` to match the pattern used in 
`connector-basic`.



##########
connector-vds/vds.go:
##########
@@ -0,0 +1,441 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package vds
+
+import (
+       "context"
+       "embed"
+       "encoding/base64"
+       "encoding/json"
+       "fmt"
+       "io"
+       "math/rand"
+       "net/http"
+       "strings"
+       "sync"
+       "time"
+       "unicode/utf8"
+
+       "github.com/mike-brown8/answer-connector-furtv/connector-vds/i18n"
+       "github.com/apache/answer-plugins/util"
+       "github.com/apache/answer/plugin"
+       "github.com/segmentfault/pacman/log"
+       "github.com/tidwall/gjson"
+       "golang.org/x/oauth2"
+)
+
+var (
+       //go:embed info.yaml
+       Info embed.FS
+       //go:embed assets/EMlogo-large1x.png
+       logoAssets embed.FS
+)
+
+type Connector struct {
+       Config            *ConnectorConfig
+       platformSignature string
+       signatureExpiry   time.Time
+       logoDataURI       string // cached logo data URI
+       mu                sync.RWMutex
+}
+
+// ConnectorConfig holds VDS-specific OAuth configuration.
+// Only ClientID and ClientSecret need to be configured by users.
+// PlatformSignature and logo are managed internally.
+type ConnectorConfig struct {
+       ClientID     string `json:"client_id"`
+       ClientSecret string `json:"client_secret"`
+}
+
+func init() {
+       plugin.Register(&Connector{
+               Config: &ConnectorConfig{},
+       })
+}
+
+func (g *Connector) Info() plugin.Info {
+       info := &util.Info{}
+       info.GetInfo(Info)
+
+       return plugin.Info{
+               Name:        plugin.MakeTranslator(i18n.InfoName),
+               SlugName:    info.SlugName,
+               Description: plugin.MakeTranslator(i18n.InfoDescription),
+               Author:      info.Author,
+               Version:     info.Version,
+               Link:        info.Link,
+       }
+}
+
+func (g *Connector) ConnectorLogoSVG() string {
+       return g.getLogoDataURICached()
+}
+
+func (g *Connector) ConnectorName() plugin.Translator {
+       return plugin.MakeTranslator(i18n.ConnectorName)
+}
+
+func (g *Connector) ConnectorSlugName() string {
+       return "vds"
+}
+
+func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL 
string) (redirectURL string) {
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:  AuthorizeURL,
+                       TokenURL: TokenURL,
+               },
+               RedirectURL: receiverURL,
+               Scopes:      strings.Split(DefaultScope, ","),
+       }
+       state := randomString(24)
+       return oauth2Config.AuthCodeURL(state)
+}
+
+func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL 
string) (userInfo plugin.ExternalLoginUserInfo, err error) {
+       code := ctx.Query("code")
+       if len(code) == 0 {
+               return userInfo, fmt.Errorf("missing authorization code")
+       }
+
+       // Exchange authorization code for access token
+       token, err := g.exchangeCodeForToken(code, receiverURL)
+       if err != nil {
+               return userInfo, err
+       }
+
+       // Fetch user information from VDS
+       userInfo, err = g.getUserInfo(token.AccessToken)
+       if err != nil {
+               return userInfo, err
+       }
+
+       userInfo = g.formatUserInfo(userInfo)
+       return userInfo, nil
+}
+
+// exchangeCodeForToken exchanges authorization code for access token with VDS.
+func (g *Connector) exchangeCodeForToken(code, receiverURL string) 
(*oauth2.Token, error) {
+       // Get platform signature for authenticating the token exchange request
+       platformSig, err := g.getPlatformSignature()
+       if err != nil {
+               return nil, fmt.Errorf("failed to get platform signature: %w", 
err)
+       }
+
+       oauth2Config := &oauth2.Config{
+               ClientID:     g.Config.ClientID,
+               ClientSecret: g.Config.ClientSecret,
+               Endpoint: oauth2.Endpoint{
+                       AuthURL:   AuthorizeURL,
+                       TokenURL:  TokenURL,
+                       AuthStyle: oauth2.AuthStyleAutoDetect,
+               },
+               RedirectURL: receiverURL,
+       }
+
+       // Use custom transport to add platform signature to token exchange 
requests
+       httpClient := &http.Client{
+               Timeout: 15 * time.Second,
+               Transport: &vdsTransport{
+                       platformSignature: platformSig,
+                       base:              http.DefaultTransport,
+               },
+       }
+
+       ctx := context.WithValue(context.Background(), oauth2.HTTPClient, 
httpClient)
+       token, err := oauth2Config.Exchange(ctx, code)
+       if err != nil {

Review Comment:
   This uses a fresh `context.Background()` rather than the incoming request 
context, so token exchange won’t be cancelled if the client disconnects or the 
request times out upstream. Prefer deriving from `ctx.Request.Context()` (or 
passing a context down from `ConnectorReceiver`) when calling 
`oauth2Config.Exchange`.



##########
connector-vds/README.md:
##########
@@ -0,0 +1,278 @@
+# VDS Account Connector
+
+[![License: Apache 
2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
+
+VDS账户连接器是Apache Answer的官方OAuth连接器,与VDS账户系统集成,提供无缝的单点登录(SSO)功能。
+
+## 简介
+
+VDS Account Connector 允许用户通过他们的VDS账户直接登录到Apache Answer社区。该连接器完全遵循VDS官方OAuth 
2.0标准实现,所有复杂的平台细节(签名管理、端点配置)都已自动化处理。
+
+## 功能特性
+
+- ✅ **完整OAuth 2.0实现** - VDS官方OAuth 2.0标准支持
+- ✅ **零配置端点** - VDS全球端点(open-global.vdsentnet.com)已硬编码
+- ✅ **自动签名管理** - 平台签名自动获取、缓存、刷新,无需用户干预
+- ✅ **自动用户信息提取** - 自动解析VDS API响应
+- ✅ **开箱即用Logo** - 内置官方EM Logo,无需额外配置
+- ✅ **国际化支持** - 中英文多语言支持
+- ✅ **错误恢复** - 智能重试机制,自动处理网络异常
+
+## 安装
+
+1. 克隆或下载VDS连接器
+2. 将文件夹复制到Apache Answer plugins目录
+3. 重新编译或重启Apache Answer服务
+
+## 配置
+
+### 前置条件
+
+在配置此连接器之前,你需要:
+
+1. **VDS开发者账户** - 在[VDS开发者平台](https://developer.vds.pub/)注册
+2. **创建应用** - 创建一个新应用以获得:
+   - `Client ID` - 应用ID(vap_xxxx格式)
+   - `Client Secret` - 应用密钥
+3. **配置回调URL** - 在应用设置中配置OAuth回调地址
+
+### 配置参数
+
+VDS连接器采用极简配置方案,只需要2个参数。所有VDS特定配置(端点、签名、Logo)都已自动处理:
+
+| 参数 | 必需 | 说明 |
+|-----|------|------|
+| **Client ID** | ✅ | VDS应用ID(vap_xxxx格式),从VDS开发者平台获得 |
+| **Client Secret** | ✅ | VDS应用密钥,从VDS开发者平台获得 |
+
+**注意**:平台签名(Platform Signature)由连接器自动在运行时获取和管理,无需用户手动配置。
+
+## 自动管理的功能
+
+### 平台签名(Platform Signature)管理
+连接器自动处理VDS平台签名的获取和刷新:
+
+- **自动获取** — 在首次使用时自动调用VDS `/api/auth/token` 端点获取平台签名
+- **智能缓存** — 签名缓存在内存中,避免重复请求
+- **自动刷新** — 当签名即将过期(剩余时间<3分钟)时自动换新
+- **错误恢复** — 失败时自动重试(最多3次),采用指数退避策略
+- **线程安全** — 使用互斥锁确保并发访问安全
+
+### Logo处理
+连接器内置官方EM Logo,支持两种工作模式:
+
+- **自动模式** — 首次加载时自动读取嵌入的 EMlogo-large1x.png,转换为 base64 DataURI,缓存使用
+- **初始化缓存** — 配置接收后立即生成并缓存 Logo DataURI,避免每次请求都转换
+
+## VDS OAuth 流程
+
+此连接器遵循VDS官方OAuth流程,所有端点已自动配置:
+
+### 1. 授权请求
+用户被重定向到VDS授权页面:
+```
+GET https://account.vds.pub/authorize?
+  client_id=vap_xxxxx&
+  redirect_uri=YOUR_CALLBACK_URL&
+  response_type=code&
+  scope=openid,profile&
+  state=RANDOM_STATE
+```
+
+### 2. 获取授权码
+用户授权后,VDS回跳到回调URL:
+```
+YOUR_CALLBACK_URL?code=AUTH_CODE&state=RANDOM_STATE
+```
+
+### 3. 交换Access Token(已自动处理)
+后端使用授权码交换access token。连接器自动处理平台签名注入:
+```
+POST https://open-global.vdsentnet.com/api/proxy/account/sso/token
+Authorization: Bearer <platform_signature>  (自动管理)
+Content-Type: application/x-www-form-urlencoded
+
+grant_type=authorization_code&
+code=AUTH_CODE&
+redirect_uri=YOUR_CALLBACK_URL&
+client_id=vap_xxxxx&
+client_secret=YOUR_APP_SECRET
+```
+
+### 4. 获取用户信息(已自动处理)
+使用access token从VDS服务器获取用户信息:
+```
+GET https://open-global.vdsentnet.com/api/proxy/account/sso/userinfo
+Authorization: Bearer <platform_signature>  (自动管理)
+X-OAuth-Access-Token: <access_token>
+```
+
+响应示例:
+```json
+{
+  "sub": "10001",
+  "name": "示例用户",
+  "username": "example_user",
+  "email": "[email protected]",
+  "avatar_url": "https://...";,
+  "phone_number": "+86137****8072",
+  "updated_at": 1774002667
+}
+```
+
+### 自动化工作流时序
+
+```
+用户授权
+  │
+  ├─→ ConnectorSender: 生成授权URL
+  │
+  └─→ [VDS授权服务]
+       │
+       └─→ ConnectorReceiver: 接收回调
+             │
+             ├─→ exchangeCodeForToken()
+             │    ├─→ getPlatformSignature() [自动获取/刷新]
+             │    └─→ 交换OAuth Token
+             │
+             └─→ getUserInfo()
+                  ├─→ getPlatformSignature() [检查缓存]
+                  └─→ 获取用户信息并返回
+```
+
+## 硬编码配置
+
+以下VDS特定配置已固定在代码中,无需手动修改:
+
+**OAuth端点:**
+- 授权端点: `https://account.vds.pub/authorize`
+- Token交换: `https://open-global.vdsentnet.com/api/proxy/account/sso/token`
+- 签名交换: `https://open-global.vdsentnet.com/api/auth/token`
+- 用户信息: `https://open-global.vdsentnet.com/api/proxy/account/sso/userinfo`
+
+**用户信息字段映射:**
+| Answer字段 | VDS API字段 | JSON路径 |
+|-----------|----------|---------|
+| ExternalID | User ID | `sub` |
+| DisplayName | 昵称 | `name` |
+| Username | 用户名 | `username` |
+| Email | 邮箱 | `email` |
+| Avatar | 头像 | `avatar_url` |
+
+**OAuth范围:** `openid,profile`
+
+## API文档
+
+关于VDS OAuth实现的详细信息,参考官方文档:
+
+- 
[VDS账户快速接入(OAuth)](https://developer.vds.pub/docs?path=VDS%E8%B4%A6%E6%88%B7&name=VDS%E8%B4%A6%E6%88%B7%E5%BF%AB%E9%80%9F%E6%8E%A5%E5%85%A5%EF%BC%88OAuth%EF%BC%89)
+- 
[授权端点](https://developer.vds.pub/docs?path=VDS%E8%B4%A6%E6%88%B7&name=%E6%8E%88%E6%9D%83%E7%AB%AF%E7%82%B9%EF%BC%88Authorize%EF%BC%8Caccount.sso.authorize%EF%BC%89)
+- 
[Token交换端点](https://developer.vds.pub/docs?path=VDS%E8%B4%A6%E6%88%B7&name=%E7%AD%BE%E5%90%8D%E4%BA%A4%E6%8D%A2%E7%AB%AF%E7%82%B9%EF%BC%88Token%EF%BC%8Caccount.sso.token%EF%BC%89)
+- 
[用户信息端点](https://developer.vds.pub/docs?path=VDS%E8%B4%A6%E6%88%B7&name=%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF%E7%AB%AF%E7%82%B9%EF%BC%88UserInfo%EF%BC%8Caccount.sso.userinfo%EF%BC%89)
+
+## 故障排查
+
+### 1. "无法获取平台签名" 错误
+**原因:** 连接器无法调用VDS `/api/auth/token` 端点或连接器凭证不正确
+
+**解决方案:**
+- 验证 Client ID 和 Client Secret 的正确性(从VDS开发者平台复制)
+- 检查网络连接,确保能访问 `open-global.vdsentnet.com`
+- 查看日志中的详细错误信息,确认是否重试3次后仍失败
+- 确认VDS应用在开发者平台未被停用
+
+### 2. "授权码无效或重定向URI不匹配"
+**原因:** 回调URL配置不一致
+
+**解决方案:**
+- 确保Apache Answer的回调URL(redirect_uri)与VDS应用配置中的回调地址完全匹配
+- 检查URL是否包含正确的协议前缀(http://或https://)
+- 验证URL是否正确编码(不应包含特殊字符)
+
+### 3. "用户信息获取失败"
+**原因:** VDS API请求失败或响应格式异常
+
+**解决方案:**
+- 平台签名由连接器自动管理,无需手动干预
+- 检查 Access Token 是否有效且未过期
+- 确认VDS API端点可访问
+- 查看日志中的HTTP状态码,根据错误代码排查
+
+### 4. Logo不显示
+**原因:** 嵌入的Logo文件损坏或加载失败
+
+**解决方案:**
+- 连接器使用内置的 EMlogo-large1x.png,已自动转换为 base64 DataURI
+- 检查浏览器控制台是否有报错
+- 若Logo无法正常显示,检查 assets/EMlogo-large1x.png 文件是否存在且完整
+- 重新编译插件
+
+### 5. "性能问题 - 每次请求都很慢"
+**原因:** Platform signature缓存未生效或频繁刷新
+
+**解决方案:**
+- 连接器自动缓存平台签名,首次获取后无需再次请求(除非即将过期)
+- 刷新周期为:签名有效期 - 3分钟
+- 检查日志中是否频繁出现"Successfully obtained platform signature"消息
+- 若频繁出现,可能是时间同步问题,检查服务器时间是否正确
+
+## 版本历史
+
+### v2.0.0 (2026-03-30)
+**主要变更:**
+- ✨ **自动平台签名管理** - 无需用户配置,连接器自动获取、缓存、刷新签名
+- ✨ **简化配置** - 从4个参数减少到2个(仅需client_id和client_secret)
+- ✨ **内置Logo** - 使用官方EM Logo,自动转换为DataURI,无需额外配置
+- 🔧 **智能重试** - 失败自动重试最多3次,支持指数退避
+- 🔧 **线程安全** - 使用互斥锁保护缓存,支持并发请求
+- 📝 **详细日志** - 增加Debug和Info级日志便于问题诊断
+- 🐛 **代码清理** - 删除冗余代码,简化实现逻辑
+
+**破坏性变更:**
+- 不再需要配置 `platform_signature` 参数
+- 不再需要配置 `logo_svg` 参数
+- 若从v1.x升级,需要删除这两个旧配置项
+
+### v1.0.0
+- 首次发布
+- 基础OAuth支持
+- 用户配置platform_signature和logo_svg
+
+## 开发
+
+### 编译
+```bash
+go mod download
+go build
+```
+
+### 测试
+```bash
+go test ./...
+```
+
+## 许可证
+
+此项目采用Apache License 2.0许可证。详见[LICENSE](LICENSE)文件。
+
+## 支持
+
+如有问题或建议,请:
+- 访问[VDS开发者平台](https://developer.vds.pub/)获取官方支持
+- 提交Issue到项目仓库
+
+## 更新日志
+
+### v1.1.0 (2026-03-31)
+- 🎯 **大幅简化配置** - 从15个字段简化到仅4个必需字段
+- 🔒 **硬编码VDS端点** - 确保始终连接到正确的VDS服务器
+- 🛡️ **移除邮箱验证检查** - 简化用户信息处理流程
+- 🎨 **改进Logo处理** - 支持PNG base64和SVG格式
+- 📝 **优化代码结构** - 提高代码可维护性和清晰度

Review Comment:
   The changelog claims the config was simplified to “4 required fields”, but 
the current implementation/config UI only exposes 2 required fields 
(`client_id` and `client_secret`). Please update the changelog to reflect the 
actual behavior so users aren’t confused during setup/upgrades.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to