Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

retry when preauthorized application are invalid #1175

Merged
merged 9 commits into from
Aug 25, 2021

Conversation

chkeita
Copy link
Contributor

@chkeita chkeita commented Aug 23, 2021

Summary of the Pull Request

Handles the case when an application registration is deleted but is still referenced as a preauthorized application in the instance registration.
This adds a logic to remove any invalid application id form the request to authorize applications.
closes #1171

How to test:
1 - create multiple registration python registration.py create_cli_registration <instance_namm> subscription_id --registration_name <name>
2- delete some of the application registration in the azure portal
3- create another registration with step 1

Tested
[x] 0 deleted app
[x]1 deleted app

Could not test with >1 app because i had redeployed my environment and the issue does not repro in my new instance application registration.

Co-authored-by: bmc-msft <41130664+bmc-msft@users.noreply.github.com>
Copy link
Member

@ranweiler ranweiler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did we test this?

src/deployment/registration.py Show resolved Hide resolved
src/deployment/registration.py Show resolved Hide resolved
src/deployment/registration.py Show resolved Hide resolved
src/deployment/registration.py Show resolved Hide resolved
@ranweiler
Copy link
Member

ranweiler commented Aug 24, 2021

@chkeita, could you please note how to manually test this?

To confirm, did we test with:

  • 0 deleted app
  • 1 deleted app
  • > 1 deleted app

@chkeita
Copy link
Contributor Author

chkeita commented Aug 25, 2021

@chkeita, could you please note how to manually test this?

To confirm, did we test with:

  • 0 deleted app
  • 1 deleted app
  • > 1 deleted app

Updated the summary

@bmc-msft bmc-msft merged commit 822fa13 into microsoft:main Aug 25, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

registration.py create_cli_registration failed with error "InvalidAppId"
3 participants