Commit 63f61db
feat: add support for NetBox 4.5+ v2 API tokens
NetBox 4.5 introduced v2 API tokens (nbt_ prefix) that require
Bearer authorization instead of Token. Auto-detect token version
by prefix and use the appropriate authorization header keyword.
- nbt_* tokens -> Authorization: Bearer <token>
- legacy tokens -> Authorization: Token <token> (backward compatible)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e972c94 commit 63f61db
3 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
156 | | - | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments