History

feat(watcher): add support for `proxy_url` in auth metadata

- Extracted and assigned `proxy_url` from metadata to `Auth.ProxyURL`.

Luis Pater committed 1 year agov6.1.16

Commit 02e28bb1 parent b9c7b9e1 file · +6 −0Browse files

Unified · Split

internal/watcher/watcher.go+6−0
@@ -951,6 +951,11 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { · 950 unmodified lines
951 id = rel951 id = rel
952 }952 }
953 953
954 proxyURL := ""
955 if p, ok := metadata["proxy_url"].(string); ok {
956 proxyURL = p
957 }
958
954 a := &coreauth.Auth{959 a := &coreauth.Auth{
955 ID: id,960 ID: id,
956 Provider: provider,961 Provider: provider,
@@ -960,6 +965,7 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { · 3 unmodified lines
960 "source": full,965 "source": full,
961 "path": full,966 "path": full,
962 },967 },
968 ProxyURL: proxyURL,
963 Metadata: metadata,969 Metadata: metadata,
964 CreatedAt: now,970 CreatedAt: now,
965 UpdatedAt: now,971 UpdatedAt: now,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t