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

Adds Authorization Handler #1562

Merged
merged 16 commits into from
Sep 30, 2024
Merged

Adds Authorization Handler #1562

merged 16 commits into from
Sep 30, 2024

Conversation

Ndiritu
Copy link
Contributor

@Ndiritu Ndiritu commented Sep 11, 2024

part of microsoftgraph/msgraph-sdk-java#2096
design-spec: https://github.com/microsoftgraph/msgraph-sdk-design/blob/main/middleware/AuthorizationHandler.md

Usage:

var authProvider = new AzureIdentityAuthenticationProvider(credential, new String[]{}, ".default");
OkHttpClient graphClient = KiotaClientFactory.create(authProvider).build();
Response response = graphClient.newCall(new Request.Builder().url("https://graph.microsoft.com/v1.0/users/" + userId).get().build()).execute();

Pending: Graph client factory updates in Graph Core to close microsoftgraph/msgraph-sdk-java#2096

@Ndiritu Ndiritu self-assigned this Sep 11, 2024
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for getting this started!

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Great progress here! just a few minor comments.

@Ndiritu Ndiritu force-pushed the feat/auth-handler branch 2 times, most recently from 2bf8ed4 to eb567d0 Compare September 30, 2024 08:36
@Ndiritu Ndiritu marked this pull request as ready for review September 30, 2024 09:15
@Ndiritu Ndiritu requested a review from a team as a code owner September 30, 2024 09:15
@Ndiritu Ndiritu changed the title Feat/auth handler Adds Authorization Handler Sep 30, 2024
Copy link

@Ndiritu Ndiritu requested a review from baywet September 30, 2024 13:08
@Ndiritu Ndiritu merged commit b82a085 into main Sep 30, 2024
9 checks passed
@Ndiritu Ndiritu deleted the feat/auth-handler branch September 30, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

No way to query product ingestion API since CustomRequestBuilder removed in V6
2 participants