Commit 848fe0c
authored
Add context comment for host-to-profile resolution in auth token (#4593)
## Summary
Comment-only change in `cmd/auth/token.go` to document why `loadToken`
resolves `--host` to a profile name before looking up the token cache.
The profile key is the intended primary cache key. The SDK's `dualWrite`
writes tokens under both the profile key and the legacy host key for
backward compatibility with older Python/Java SDKs that only know host
keys. This comment explains the migration context and when dualWrite can
be removed.
## Test plan
- No behavioral changes — comment only
Signed-off-by: simon <simon.faltum@databricks.com>1 parent fe485cc commit 848fe0c
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
0 commit comments