Skip to content

Commit d341653

Browse files
authored
Merge pull request #31 from kirkone/feature/2.0.0-reorg
- Add support for azure ad application - clean up configuration - make it easy to add own providers - make it easy to map claims - add a new quickstart guide - add errors if the azure app service is configured wrong - add test so we avoid breaking changes
2 parents 2ed9f97 + 434a1e9 commit d341653

120 files changed

Lines changed: 16398 additions & 13100 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 273 additions & 138 deletions
Large diffs are not rendered by default.

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": ".NET Core Launch (web)",
8+
"name": "Sample Web",
99
"type": "coreclr",
1010
"request": "launch",
1111
"preLaunchTask": "build",
12-
"program": "${workspaceFolder}/src/KK.AspNetCore.EasyAuthAuthentication.Sample/bin/Debug/netcoreapp2.1/KK.AspNetCore.EasyAuthAuthentication.Sample.dll",
12+
"program": "${workspaceFolder}/samples/KK.AspNetCore.EasyAuthAuthentication.Samples.Web/bin/Debug/netcoreapp3.1/KK.AspNetCore.EasyAuthAuthentication.Samples.Web.dll",
1313
"args": [],
14-
"cwd": "${workspaceFolder}/src/KK.AspNetCore.EasyAuthAuthentication.Sample",
14+
"cwd": "${workspaceFolder}/samples/KK.AspNetCore.EasyAuthAuthentication.Samples.Web",
1515
"stopAtEntry": false,
1616
"internalConsoleOptions": "openOnSessionStart",
1717
"launchBrowser": {

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "process",
1010
"args": [
1111
"build",
12-
"${workspaceFolder}/src/KK.AspNetCore.EasyAuthAuthentication.Sample/KK.AspNetCore.EasyAuthAuthentication.Sample.csproj"
12+
"${workspaceFolder}/samples/KK.AspNetCore.EasyAuthAuthentication.Samples.Web/KK.AspNetCore.EasyAuthAuthentication.Samples.Web.csproj"
1313
],
1414
"problemMatcher": "$msCompile",
1515
"group": {
@@ -26,7 +26,7 @@
2626
"env": {
2727
"ASPNETCORE_ENVIRONMENT": "Production"
2828
},
29-
"cwd": "${workspaceFolder}/src/KK.AspNetCore.EasyAuthAuthentication.Sample"
29+
"cwd": "${workspaceFolder}/src/KK.AspNetCore.EasyAuthAuthentication.Samples.Web"
3030
},
3131
"problemMatcher": []
3232
}

KK.AspNetCore.EasyAuthAuthentication.code-workspace

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@
66
"path": "./src/KK.AspNetCore.EasyAuthAuthentication"
77
},
88
{
9-
"name": "EasyAuth Middleware Sample",
10-
"path": "./src/KK.AspNetCore.EasyAuthAuthentication.Sample"
9+
"name": "EasyAuth Middleware Sample Web",
10+
"path": "./samples/KK.AspNetCore.EasyAuthAuthentication.Samples.Web"
11+
},
12+
{
13+
"name": "EasyAuth Middleware Sample Client",
14+
"path": "./samples/KK.AspNetCore.EasyAuthAuthentication.Samples.Client"
1115
},
1216
{
1317
"name": "Vscode Build Debug",
1418
"path": "./.vscode"
1519
},
1620
{
1721
"name": "Azure DevOps Pipeline",
18-
"path": "./build"
22+
"path": "./pipelines"
1923
},
2024
{
2125
"name": "Repo Root",

KK.AspNetCore.EasyAuthAuthentication.sln

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26124.0
2+
# Visual Studio Version 16
3+
VisualStudioVersion = 16.0.29021.104
54
MinimumVisualStudioVersion = 15.0.26124.0
65
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5D09A785-6509-4FA8-8394-DB761ECFC353}"
76
EndProject
87
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KK.AspNetCore.EasyAuthAuthentication", "src\KK.AspNetCore.EasyAuthAuthentication\KK.AspNetCore.EasyAuthAuthentication.csproj", "{70FFE5C2-8F7C-49E0-9C31-DB713BA66B8B}"
98
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KK.AspNetCore.EasyAuthAuthentication.Sample", "src\KK.AspNetCore.EasyAuthAuthentication.Sample\KK.AspNetCore.EasyAuthAuthentication.Sample.csproj", "{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}"
11-
EndProject
129
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{215B89CF-8087-48EF-ACDE-995AEE744BF2}"
1310
ProjectSection(SolutionItems) = preProject
1411
.editorconfig = .editorconfig
1512
.gitignore = .gitignore
1613
global.json = global.json
1714
LICENSE = LICENSE
1815
README.md = README.md
19-
StyleCop.json = StyleCop.json
20-
StyleCop.ruleset = StyleCop.ruleset
2116
EndProjectSection
2217
EndProject
18+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{61A3BCF5-B88D-4B1A-B75B-0FAAAD64B5EE}"
19+
EndProject
20+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KK.AspNetCore.EasyAuthAuthentication.Test", "test\KK.AspNetCore.EasyAuthAuthentication.Test\KK.AspNetCore.EasyAuthAuthentication.Test.csproj", "{14E614F4-F9AD-4366-8655-25BA022DF2F9}"
21+
EndProject
22+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{D2C7C51D-6374-45F1-9720-BD2AB72A5985}"
23+
ProjectSection(SolutionItems) = preProject
24+
build\KK.AspNetCore.EasyAuthAuthentication.yaml = build\KK.AspNetCore.EasyAuthAuthentication.yaml
25+
EndProjectSection
26+
EndProject
27+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{5BFA66A2-D17F-4D6B-B42C-31A47EAB6995}"
28+
EndProject
29+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KK.AspNetCore.EasyAuthAuthentication.Samples.Client", "samples\KK.AspNetCore.EasyAuthAuthentication.Samples.Client\KK.AspNetCore.EasyAuthAuthentication.Samples.Client.csproj", "{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}"
30+
EndProject
31+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KK.AspNetCore.EasyAuthAuthentication.Samples.Web", "samples\KK.AspNetCore.EasyAuthAuthentication.Samples.Web\KK.AspNetCore.EasyAuthAuthentication.Samples.Web.csproj", "{ECDD0707-BC69-424F-AA74-CE062A7988D1}"
32+
EndProject
2333
Global
2434
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2535
Debug|Any CPU = Debug|Any CPU
@@ -42,25 +52,52 @@ Global
4252
{70FFE5C2-8F7C-49E0-9C31-DB713BA66B8B}.Release|x64.Build.0 = Release|Any CPU
4353
{70FFE5C2-8F7C-49E0-9C31-DB713BA66B8B}.Release|x86.ActiveCfg = Release|Any CPU
4454
{70FFE5C2-8F7C-49E0-9C31-DB713BA66B8B}.Release|x86.Build.0 = Release|Any CPU
45-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Debug|x64.ActiveCfg = Debug|Any CPU
48-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Debug|x64.Build.0 = Debug|Any CPU
49-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Debug|x86.ActiveCfg = Debug|Any CPU
50-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Debug|x86.Build.0 = Debug|Any CPU
51-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Release|x64.ActiveCfg = Release|Any CPU
54-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Release|x64.Build.0 = Release|Any CPU
55-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Release|x86.ActiveCfg = Release|Any CPU
56-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA}.Release|x86.Build.0 = Release|Any CPU
55+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
57+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Debug|x64.ActiveCfg = Debug|Any CPU
58+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Debug|x64.Build.0 = Debug|Any CPU
59+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Debug|x86.ActiveCfg = Debug|Any CPU
60+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Debug|x86.Build.0 = Debug|Any CPU
61+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
62+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Release|Any CPU.Build.0 = Release|Any CPU
63+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Release|x64.ActiveCfg = Release|Any CPU
64+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Release|x64.Build.0 = Release|Any CPU
65+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Release|x86.ActiveCfg = Release|Any CPU
66+
{14E614F4-F9AD-4366-8655-25BA022DF2F9}.Release|x86.Build.0 = Release|Any CPU
67+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
69+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Debug|x64.ActiveCfg = Debug|Any CPU
70+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Debug|x64.Build.0 = Debug|Any CPU
71+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Debug|x86.ActiveCfg = Debug|Any CPU
72+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Debug|x86.Build.0 = Debug|Any CPU
73+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
74+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Release|Any CPU.Build.0 = Release|Any CPU
75+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Release|x64.ActiveCfg = Release|Any CPU
76+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Release|x64.Build.0 = Release|Any CPU
77+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Release|x86.ActiveCfg = Release|Any CPU
78+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7}.Release|x86.Build.0 = Release|Any CPU
79+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
81+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Debug|x64.ActiveCfg = Debug|Any CPU
82+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Debug|x64.Build.0 = Debug|Any CPU
83+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Debug|x86.ActiveCfg = Debug|Any CPU
84+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Debug|x86.Build.0 = Debug|Any CPU
85+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
86+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Release|Any CPU.Build.0 = Release|Any CPU
87+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Release|x64.ActiveCfg = Release|Any CPU
88+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Release|x64.Build.0 = Release|Any CPU
89+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Release|x86.ActiveCfg = Release|Any CPU
90+
{ECDD0707-BC69-424F-AA74-CE062A7988D1}.Release|x86.Build.0 = Release|Any CPU
5791
EndGlobalSection
5892
GlobalSection(SolutionProperties) = preSolution
5993
HideSolutionNode = FALSE
6094
EndGlobalSection
6195
GlobalSection(NestedProjects) = preSolution
6296
{70FFE5C2-8F7C-49E0-9C31-DB713BA66B8B} = {5D09A785-6509-4FA8-8394-DB761ECFC353}
63-
{B156B6B8-9427-4A72-8986-9A17F4FBC0EA} = {5D09A785-6509-4FA8-8394-DB761ECFC353}
97+
{14E614F4-F9AD-4366-8655-25BA022DF2F9} = {61A3BCF5-B88D-4B1A-B75B-0FAAAD64B5EE}
98+
{D2C7C51D-6374-45F1-9720-BD2AB72A5985} = {215B89CF-8087-48EF-ACDE-995AEE744BF2}
99+
{ABE0D857-5552-4A77-9BB3-0386B9A06DD7} = {5BFA66A2-D17F-4D6B-B42C-31A47EAB6995}
100+
{ECDD0707-BC69-424F-AA74-CE062A7988D1} = {5BFA66A2-D17F-4D6B-B42C-31A47EAB6995}
64101
EndGlobalSection
65102
GlobalSection(ExtensibilityGlobals) = postSolution
66103
SolutionGuid = {44C662E3-C7A8-4358-B63F-59F3BE083C60}

0 commit comments

Comments
 (0)