Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid querying graph APIs for ASO #724

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

peterbom
Copy link
Contributor

@peterbom peterbom commented Jun 7, 2024

Addresses #552.

Ideally, we would want to query graph APIs to get the service principal associated with the specified application client ID.

We cannot do that at the moment, because the client application used to obtain an access token does not have the appropriate delegated permissions. We can add this in the future, but it would require defining our own first party application (which would also be required for #253).

Until then we need to remove the service principal retrieval and role assignment checking. The onus will now be on the user to specify the correct application client ID and secret, and ensure the service principal has access to the selected subscription. This is how the feature was originally designed, so it's not an excessively severe limitation.

Copy link
Member

@Tatsinnit Tatsinnit left a comment

Choose a reason for hiding this comment

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

Thank you so much for this, it will be nice to document this for the knowledge and loop back of @qpetraroia as well.

I have nothing much to add, given this is specific to the fix, let's get it in. I have trust that we have tested this. Thanks heaps.

@Tatsinnit Tatsinnit added the bug Something isn't working label Jun 20, 2024
@peterbom peterbom merged commit 9ca8885 into Azure:main Jun 20, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants