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

chore: Update .NET sample to use MSAL best practices #1146

Merged
merged 4 commits into from Dec 11, 2023

Conversation

bgavrilMS
Copy link
Contributor

@bgavrilMS bgavrilMS commented Oct 20, 2023

Reason for Change:

The MSAL samples do not showcase MSAL best practices such as token caching, authority configuration and assertion refresh.

Source: I am the engineering manager for MSAL.NET

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Please answer the following questions with yes/no:

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

  • yes
  • no

Notes for Reviewers:

@bgavrilMS bgavrilMS changed the title Update TokenCredential.cs Update .NET sample to use MSAL best practices Oct 20, 2023
Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

@bgavrilMS Thank you for the PR! Added few comments.

examples/msal-net/akvdotnet/TokenCredential.cs Outdated Show resolved Hide resolved
examples/msal-net/akvdotnet/TokenCredential.cs Outdated Show resolved Hide resolved
examples/msal-net/akvdotnet/TokenCredential.cs Outdated Show resolved Hide resolved
Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

@bgavrilMS ping on this one! Are you still working on the PR?

@bgavrilMS
Copy link
Contributor Author

Thanks for the ping @aramase, taking a look.

@aramase aramase changed the title Update .NET sample to use MSAL best practices chore: Update .NET sample to use MSAL best practices Dec 11, 2023
@aramase
Copy link
Member

aramase commented Dec 11, 2023

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

@bgavrilMS Thank you for the PR! 🎉

LGTM

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0fb935f) 55.49% compared to head (9ae6267) 55.49%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1146   +/-   ##
=======================================
  Coverage   55.49%   55.49%           
=======================================
  Files          36       36           
  Lines        2294     2294           
=======================================
  Hits         1273     1273           
  Misses        980      980           
  Partials       41       41           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aramase aramase merged commit 6217742 into Azure:main Dec 11, 2023
11 checks passed
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.

None yet

4 participants