Commit a1b4ed0
Move OAuth secret management into pkg/auth/oauth (#2462)
Previously pkg/oauth/ contained only OAuth client secret management
functions (ProcessOAuthClientSecret, StoreSecretInManager), which
was confusing because it shared a similar name with pkg/auth/oauth/
which contains the actual OAuth/OIDC protocol implementation.
This change:
- Moves pkg/oauth/client_secret.go → pkg/auth/oauth/secrets.go
- Updates 2 call sites: cmd/thv/app/run_flags.go, pkg/runner/config.go
- Removes pkg/oauth/ directory entirely
Benefits:
- Clearer package structure (all OAuth code under pkg/auth/oauth/)
- No more confusion between pkg/oauth and pkg/auth/oauth
- Better separation: secrets.go for secret management, flow.go for OAuth protocol
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2d4af47 commit a1b4ed0
File tree
4 files changed
+5
-5
lines changed- cmd/thv/app
- pkg
- auth/oauth
- runner
4 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | | - | |
| 857 | + | |
858 | 858 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
0 commit comments