Commit e7df6a1
fix: prevent config drift for OIDC users in Read function
Update the Read function to not populate roles from server response for OIDC users.
This prevents Terraform from detecting config drift when OIDC users have roles
assigned by the OIDC provider but an empty roles list in the Terraform config.
Addresses review comment about config drift in PR #247.
Co-authored-by: angrycub <464492+angrycub@users.noreply.github.com>1 parent d8d4d6f commit e7df6a1
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
284 | 294 | | |
285 | | - | |
| 295 | + | |
286 | 296 | | |
287 | 297 | | |
288 | 298 | | |
| |||
446 | 456 | | |
447 | 457 | | |
448 | 458 | | |
449 | | - | |
| 459 | + | |
0 commit comments