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

Feat/auth handler #1562

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Feat/auth handler #1562

wants to merge 15 commits into from

Conversation

Ndiritu
Copy link
Contributor

@Ndiritu Ndiritu commented Sep 11, 2024

@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!

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ContinuousAccessEvaluationClaims {
Copy link
Member

Choose a reason for hiding this comment

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

could we restrict this to package instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wouldn't be possible since it's used both under the ...http and ...http.middleware packages.

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.

* Helper class to extract the claims from the WWW-Authenticate header in a response.
* https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-continuous-access-evaluation
*/
public final class ContinuousAccessEvaluationClaims {
Copy link
Member

Choose a reason for hiding this comment

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

do we need this class to be public? can't we restrain it to package so we're not shipping additional API on this side?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's being used in the com.microsoft.kiota.http package and com.microsoft.kiota.http.middleware package.
Restricting it would make it only visible in the main http package and not in the middleware package and vice versa. Java doesn't have an equivalent of internal in .NET

Copy link

sonarcloud bot commented Sep 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress 🚧
Development

Successfully merging this pull request may close these issues.

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