add additionally allowed tenant ids support#26133
Conversation
|
API change check APIView has identified API level changes in this PR and created following API reviews. |
mccoyp
left a comment
There was a problem hiding this comment.
Did architects prefer additionally_allowed_tenant_ids over something like additionally_allowed_tenants, and/or is the naming conversation still ongoing?
…ization_code.py Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
We are working with the architects on the name. :) |
pvaneck
left a comment
There was a problem hiding this comment.
With Azure/azure-sdk-for-net#31037 merged after a lot of documentation review/revision, should we reflect the same documentation here for consistency? Or is that a follow-up as a part of #26159?
Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
We will need more time to finalize the docs/troubleshooting guideline/etc. My plan is to merge the code and start the API review with our architects and we will have another PR to update the docs. |
mccoyp
left a comment
There was a problem hiding this comment.
Aside from my nitpicking, I think this looks good! I don't think I see a negative test though, where we verify that sending an invalid tenant raises the expected error; I think we should have that for at least one credential to validate the behavior of resolve_tenant. Feel free to correct me if there is such a test and I just missed it 🙂
…ization_code.py Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
mccoyp
left a comment
There was a problem hiding this comment.
I'm still unsure about the documentation of additionally_allowed_tenants in the CLI and PowerShell credentials since it doesn't seem like the kwarg actually does anything right now, but I'm not going to block the PR on it since the feature will at least apply in the near future.
Yes. Before we add the support of user-specified tenant-id, |
* add additionally allowed tenant ids support * Update sdk/identity/azure-identity/azure/identity/_credentials/authorization_code.py Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com> * rename additionally_allowed_tenant_ids * update * Update sdk/identity/azure-identity/azure/identity/_credentials/authorization_code.py Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com> * updates * update * update * update * Update sdk/identity/azure-identity/CHANGELOG.md Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com> * update * Update sdk/identity/azure-identity/azure/identity/_credentials/authorization_code.py Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com> * update * update * update Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
Cherry picked the commits.
Removed beta changes:
tenant_idforAzureCliCredentialVisualStudioCodeCredentialfromDefaultAzureCredentialtoken chain.AZURE_CLIENT_CERTIFICATE_PASSWORDsupport forEnvironmentCredentialvalidate_authoritysupport