[AUTHN-66] iam provider and pool commands#1303
[AUTHN-66] iam provider and pool commands#1303Brian Strauch (brianstrauch) merged 32 commits intomainfrom
Conversation
Brian Strauch (brianstrauch)
left a comment
There was a problem hiding this comment.
Looks great! Super clean! 🎉
internal/cmd/iam/command.go
Outdated
| package iam | ||
|
|
||
| import ( | ||
| "github.com/confluentinc/cli/internal/pkg/featureflags" |
There was a problem hiding this comment.
Sort your imports!
| RunE: c.delete, | ||
| Example: examples.BuildExampleString( | ||
| examples.Example{ | ||
| Text: `Delete identity provider op-12345.`, |
There was a problem hiding this comment.
| Text: `Delete identity provider op-12345.`, | |
| Text: `Delete identity provider "op-12345".`, |
Arvind Thirunarayanan (arvindth)
left a comment
There was a problem hiding this comment.
Couple of observations:
- When I run this command:
> XX_LAUNCH_DARKLY_TEST_ENV=true dist/confluent_darwin_amd64/confluent iam pool get pool-q0yR --provider op-Jn
Error: unknown flag: --provider
Usage: ...
It gives me an unknown flag --provider error. I would have expected unknown command get instead.
- When you receive a 400 bad request, it would be helpful to also print out the error message to help diagnose the issue. eg: Deleting a provider that still has some pools gives a response of
{"error_code":400,"message":"OpenID provider op-Pj at Org 5f93392c-f9bd-4bef-8523-2da64591e058 has 2 active identity pools associated."}but this message is not printed out by the cli.
| IdentityClaim: *resp.SubjectClaim, | ||
| Filter: *resp.Policy, |
There was a problem hiding this comment.
We'll be updating the api, and then the sdk soon to return identityClaim and filter. We'll keep the cli team posted when that happens, and you can update this to match at that time.
|
Kevin Wu (@kevin-wu24) looks like the but I see a call to |
Arvind Thirunarayanan (arvindth)
left a comment
There was a problem hiding this comment.
Hey Kevin Wu (@kevin-wu24) had a couple of follow comments. Otherwise, functionality-wise it lgtm.
| RunE: c.delete, | ||
| Example: examples.BuildExampleString( | ||
| examples.Example{ | ||
| Text: `Delete identity pool pool-12345.`, |
There was a problem hiding this comment.
I don't see this change. Did you forget to commit?
Checklist
What
References
Test & Review