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

add cache extensions #1278

Merged
merged 4 commits into from
Jun 21, 2021
Merged

add cache extensions #1278

merged 4 commits into from
Jun 21, 2021

Conversation

jennyf19
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

Thanks @jennyf19
That's simplifying the message for token caches.

I've proposed a few changes in comments

/// </code>
///
/// </example>
/// <remarks>Don't use this method in ASP.NET Core. Just add use the ConfigureServices method
Copy link
Collaborator

@jmprieur jmprieur Jun 21, 2021

Choose a reason for hiding this comment

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

Maybe add a 'see also' to recommend AddDistributedTokenCaches?
If you are using distributed token caches, is recommanded, or something like that? #Resolved

/// Add an in-memory well partitioned token cache to MSAL.NET confidential client
/// application. Don't use this method in ASP.NET Core: rather use:
/// <code>services.AddInMemoryTokenCaches()</code> in ConfigureServices.
/// In net462 and net472, you'll need to reference Microsoft.Extensions.Caching.Memory.
Copy link
Collaborator

@jmprieur jmprieur Jun 21, 2021

Choose a reason for hiding this comment

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

Actually, I think that we now do in Ms.Id.Web. So we can remove this sentence. #Resolved

}

// In memory token cache
// In net472, requires to reference Microsoft.Extensions.Caching.Memory
Copy link
Collaborator

@jmprieur jmprieur Jun 21, 2021

Choose a reason for hiding this comment

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

I guess we can remove this comment #Resolved

@jmprieur
Copy link
Collaborator

PR: #1277

@jennyf19 jennyf19 marked this pull request as ready for review June 21, 2021 19:51
@sonarcloud
Copy link

sonarcloud bot commented Jun 21, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.5% 90.5% Coverage
0.0% 0.0% Duplication

@jennyf19 jennyf19 merged commit 84896f8 into master Jun 21, 2021
@jennyf19 jennyf19 deleted the jennyf/cacheHelp branch June 21, 2021 21:25
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