Commit d5166bb
authored
Preparing Microsoft.Identity.Web for being disributed as a NuGet package (#153)
* Preparing Microsoft.Identity.Web for being disributed as a NuGet package
1) Merging the content from microsoft-authentication-extensions-for-dotnet Web
2) Aligning the namespaces with the folder strucuture
3) Renaming files and classes per the style used in MSAL.NET
* Improving the doc
* Updating the README.md
* Adding an architecture diagram
* Updating the code
* Enabling the creation of a NuGet package
* Fixing regression introduced when merging both code bases
* 1. Added CreateTokenCachingTablesInSqlDatabase in SqlTokenCacheProviderExtension.cs as the developer can no longer uncomment a piece of code to create tables for Sql token caching. Updated 2-2-Token-caching
2. Fixed a bug in 4-WebApp-Your-Api which needed **services.AddSession();** in AddProtectWebApiWithMicrosoftIdentityPlatformV2().
3. Added "JwtSecurityTokenHandler.DefaultMapInboundClaims = false;" in a few startup.cs to encourage using the new claim set in V2 samples.
4. Lots of comments updated in Microsoft.IDentity.Web classes
5. Renamed *ServiceCollectionExtension classes to *TokenCacheProviderExtensions as the classes have extention methods for token providers and the name matches the purpose.
6. Fixed a bug in MsalAppMemoryTokenCacheProvider
7. Remove redundant parameters from IMsalAppTokenCacheProvider and IMsalUserTokenCacheProvider Initialize() methods
* minor typo fixed
* Removing, `JwtSecurityTokenHandler.DefaultMapInboundClaims = false;` because `preferred_username` claim was not being mapped
* Revert "Removing, `JwtSecurityTokenHandler.DefaultMapInboundClaims = false;` because `preferred_username` claim was not being mapped"
This reverts commit 45baf51.
* Change AddProtectWebApiWithMicrosoftIdentityPlatformV2 by AddProtectedWebApiWithMicrosoftIdentityPlatformV2
* Acting on @MarkZuber 's PR feedback
* AddAzureAdV2Authentication, AddProtectedApiCallsWebApis; AddMsal now takes the configuration (and optional parameters to let the developer choose the options section) => all the Startup.cs file using it are modified.
Simplifying the implementation of the token cache serializers by creating a IMsalTokenCacheProvider interface and a MsalAbstractTokenCacheProvider class implementing the common code in all the token cache providers.
Fixing a few code smells (including ConfigureAwait(false) where needed.
Chaning the CallGraph solution to be a Visual Studio 2019 solution.
* Addressing Mark's additional suggestions
* Updating the token caches
* Renaming the AbstractMsalTokenCacheProvider into MsaAbstractTokenCacheProvider, adding a class diagram and improving a README.md
* - Renamed AddAzureAdV2Authentication into AddMicrosoftIdentityPlatformAuthentication
- Renamed AddProtectedWebApiWithMicrosoftIdentityPlatformV2 into AddProtectedWebApi
* Provide migration help for the Sql Token cache provider
Remove the AsyncUsageAnalyzers
Improves the build.bat and buildAllSln.proj to add more target (restore and clean)
* Fixing a merged project
* Renaming MsalUiRequiredExceptionFilterAttribute to AuthorizeForScopesAttribute1 parent a2d1520 commit d5166bb
File tree
107 files changed
+4058
-2563
lines changed- 1-WebApp-OIDC
- 1-1-MyOrg
- 1-2-AnyOrg
- 1-3-AnyOrgOrPersonal
- 1-4-Sovereign
- 1-6-SignOut
- 2-WebApp-graph-user
- 2-1-Call-MSGraph
- Controllers
- Services
- 2-2-TokenCache
- AppCreationScripts
- Controllers
- 2-4-Sovereign-Call-MSGraph
- Controllers
- 3-WebApp-multi-APIs
- Controllers
- Services/MicrosoftGraph-Rest
- 4-WebApp-your-API
- AppCreationScripts
- Client
- Controllers
- Services
- TodoListService
- 5-WebApp-AuthZ
- 5-1-Roles
- Controllers
- 5-2-Groups
- Controllers
- Microsoft.Identity.Web.Test
- Microsoft.Identity.Web
- Client
- TokenCacheProviders
- InMemory
- Session
- Sql
- InstanceDiscovery
- Resource
- TokenCacheProviders
- InMemory
- Session
- Sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
107 files changed
+4058
-2563
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments