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

Remove dependency on github.com/microsoftgraph/msgraph-sdk-go #139

Closed
wants to merge 1 commit into from

Conversation

swenson
Copy link
Contributor

@swenson swenson commented Nov 2, 2023

We only use msgraph-sdk-go for a handful of calls, and they are relatively straightforward HTTP calls.

This code still uses the Microsoft packages for authentication, which is the trickier part.

I'm having trouble getting the tests to pass consistently, but I always have trouble with these tests.

I compiled the Vault binary with this change only, and it reduces the size of the Vault binary from 360 MB to 264 MB.

We only use msgraph-sdk-go for a handful of calls, and they are
relatively straightforward HTTP calls.

This code still uses the Microsoft packages for authentication, which
is the trickier part.

I'm having trouble getting the tests to pass consistently, but
I always have trouble with these tests.

I compiled the Vault binary with this change only, and it reduces
the size of the Vault binary from 360 MB to 264 MB.
@swenson swenson requested a review from a team November 2, 2023 19:28

apps := resp.GetValue()
if len(apps) == 0 {
resp, err := http.DefaultClient.Do(request)
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! I rushed this out, but if we intended to go this route, I'd refactor this to use a common http client and DRY a few things.

But, it sounds like we're looking to use the msgraph SDK in more places, so merging this wouldn't really change anything. I'll close for now but keep the branch.

@swenson swenson closed this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants