├── Quickstarts ├── 6_AspNetIdentity │ ├── src │ │ ├── MvcClient │ │ │ ├── wwwroot │ │ │ │ ├── js │ │ │ │ │ ├── site.min.js │ │ │ │ │ └── site.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── lib │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── jquery │ │ │ │ │ │ └── .bower.json │ │ │ │ ├── css │ │ │ │ │ └── site.min.css │ │ │ │ └── _references.js │ │ │ ├── .bowerrc │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── Shared │ │ │ │ │ ├── Json.cshtml │ │ │ │ │ └── Error.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ └── Home │ │ │ │ │ ├── Index.cshtml │ │ │ │ │ └── Secure.cshtml │ │ │ ├── bower.json │ │ │ ├── appsettings.json │ │ │ ├── MvcClient.csproj │ │ │ ├── bundleconfig.json │ │ │ └── Program.cs │ │ ├── IdentityServerWithAspNetIdentity │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── _ValidationSummary.cshtml │ │ │ │ ├── Account │ │ │ │ │ └── Logout.cshtml │ │ │ │ └── Diagnostics │ │ │ │ │ └── Index.cshtml │ │ │ ├── appsettings.json │ │ │ ├── wwwroot │ │ │ │ ├── icon.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── favicon.ico │ │ │ │ ├── js │ │ │ │ │ └── signout-redirect.js │ │ │ │ └── lib │ │ │ │ │ ├── jquery-validation │ │ │ │ │ ├── src │ │ │ │ │ │ ├── additional │ │ │ │ │ │ │ ├── lettersonly.js │ │ │ │ │ │ │ ├── nowhitespace.js │ │ │ │ │ │ │ ├── integer.js │ │ │ │ │ │ │ ├── zipcodeUS.js │ │ │ │ │ │ │ ├── alphanumeric.js │ │ │ │ │ │ │ ├── postalcodeNL.js │ │ │ │ │ │ │ ├── letterswithbasicpunc.js │ │ │ │ │ │ │ ├── time.js │ │ │ │ │ │ │ ├── ziprange.js │ │ │ │ │ │ │ ├── dateNL.js │ │ │ │ │ │ │ ├── postalcodeIT.js │ │ │ │ │ │ │ ├── time12h.js │ │ │ │ │ │ │ ├── mobileNL.js │ │ │ │ │ │ │ ├── dateFA.js │ │ │ │ │ │ │ ├── notEqualTo.js │ │ │ │ │ │ │ ├── giroaccountNL.js │ │ │ │ │ │ │ ├── ipv4.js │ │ │ │ │ │ │ ├── strippedminlength.js │ │ │ │ │ │ │ ├── bankorgiroaccountNL.js │ │ │ │ │ │ │ ├── phoneNL.js │ │ │ │ │ │ │ ├── postalcodeBR.js │ │ │ │ │ │ │ ├── extension.js │ │ │ │ │ │ │ ├── postcodeUK.js │ │ │ │ │ │ │ ├── postalCodeCA.js │ │ │ │ │ │ │ └── pattern.js │ │ │ │ │ │ └── localization │ │ │ │ │ │ │ ├── methods_pt.js │ │ │ │ │ │ │ ├── methods_nl.js │ │ │ │ │ │ │ ├── methods_fi.js │ │ │ │ │ │ │ ├── methods_de.js │ │ │ │ │ │ │ └── methods_es_CL.js │ │ │ │ │ └── bower.json │ │ │ │ │ ├── bootstrap │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ └── jquery-validation-unobtrusive │ │ │ │ │ └── LICENSE.txt │ │ │ ├── appsettings.Development.json │ │ │ ├── Quickstart │ │ │ │ ├── Account │ │ │ │ │ ├── LogoutInputModel.cs │ │ │ │ │ ├── LogoutViewModel.cs │ │ │ │ │ ├── ExternalProvider.cs │ │ │ │ │ └── LoginInputModel.cs │ │ │ │ ├── Home │ │ │ │ │ └── ErrorViewModel.cs │ │ │ │ └── Consent │ │ │ │ │ ├── ConsentInputModel.cs │ │ │ │ │ ├── ScopeViewModel.cs │ │ │ │ │ ├── ProcessConsentResult.cs │ │ │ │ │ └── ConsentViewModel.cs │ │ │ └── Models │ │ │ │ └── ApplicationUser.cs │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ └── Program.cs │ │ ├── Client │ │ │ └── Client.csproj │ │ └── ResourceOwnerClient │ │ │ └── ResourceOwnerClient.csproj │ └── readme.md ├── 7_JavaScriptClient │ ├── src │ │ ├── MvcClient │ │ │ ├── wwwroot │ │ │ │ ├── js │ │ │ │ │ ├── site.min.js │ │ │ │ │ └── site.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── lib │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── jquery │ │ │ │ │ │ └── .bower.json │ │ │ │ ├── css │ │ │ │ │ └── site.min.css │ │ │ │ └── _references.js │ │ │ ├── .bowerrc │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── Shared │ │ │ │ │ ├── Json.cshtml │ │ │ │ │ └── Error.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ └── Home │ │ │ │ │ ├── Index.cshtml │ │ │ │ │ └── Secure.cshtml │ │ │ ├── bower.json │ │ │ ├── appsettings.json │ │ │ ├── MvcClient.csproj │ │ │ ├── bundleconfig.json │ │ │ └── Program.cs │ │ ├── QuickstartIdentityServer │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── _ValidationSummary.cshtml │ │ │ │ ├── Account │ │ │ │ │ └── Logout.cshtml │ │ │ │ └── Diagnostics │ │ │ │ │ └── Index.cshtml │ │ │ ├── wwwroot │ │ │ │ ├── icon.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── favicon.ico │ │ │ │ ├── js │ │ │ │ │ └── signout-redirect.js │ │ │ │ └── lib │ │ │ │ │ └── bootstrap │ │ │ │ │ └── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── Quickstart │ │ │ │ ├── Account │ │ │ │ │ ├── LogoutInputModel.cs │ │ │ │ │ ├── LogoutViewModel.cs │ │ │ │ │ ├── ExternalProvider.cs │ │ │ │ │ └── LoginInputModel.cs │ │ │ │ ├── Home │ │ │ │ │ └── ErrorViewModel.cs │ │ │ │ └── Consent │ │ │ │ │ ├── ConsentInputModel.cs │ │ │ │ │ ├── ScopeViewModel.cs │ │ │ │ │ ├── ProcessConsentResult.cs │ │ │ │ │ └── ConsentViewModel.cs │ │ │ ├── QuickstartIdentityServer.csproj │ │ │ └── Program.cs │ │ ├── JavaScriptClient │ │ │ ├── package.json │ │ │ ├── JavaScriptClient.csproj │ │ │ ├── wwwroot │ │ │ │ ├── index.html │ │ │ │ └── callback.html │ │ │ ├── Startup.cs │ │ │ └── Program.cs │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ └── Program.cs │ │ ├── Client │ │ │ └── Client.csproj │ │ └── ResourceOwnerClient │ │ │ └── ResourceOwnerClient.csproj │ └── readme.md ├── 8_EntityFrameworkStorage │ ├── src │ │ ├── MvcClient │ │ │ ├── wwwroot │ │ │ │ ├── js │ │ │ │ │ ├── site.min.js │ │ │ │ │ └── site.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── lib │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── jquery │ │ │ │ │ │ └── .bower.json │ │ │ │ ├── css │ │ │ │ │ └── site.min.css │ │ │ │ └── _references.js │ │ │ ├── .bowerrc │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── Shared │ │ │ │ │ ├── Json.cshtml │ │ │ │ │ └── Error.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ └── Home │ │ │ │ │ └── Index.cshtml │ │ │ ├── bower.json │ │ │ ├── appsettings.json │ │ │ ├── MvcClient.csproj │ │ │ ├── bundleconfig.json │ │ │ └── Program.cs │ │ ├── QuickstartIdentityServer │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── _ValidationSummary.cshtml │ │ │ │ ├── Account │ │ │ │ │ └── Logout.cshtml │ │ │ │ └── Diagnostics │ │ │ │ │ └── Index.cshtml │ │ │ ├── updateUI.ps1 │ │ │ ├── wwwroot │ │ │ │ ├── icon.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── favicon.ico │ │ │ │ ├── js │ │ │ │ │ └── signout-redirect.js │ │ │ │ └── lib │ │ │ │ │ └── bootstrap │ │ │ │ │ └── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── Quickstart │ │ │ │ ├── Account │ │ │ │ │ ├── LogoutInputModel.cs │ │ │ │ │ ├── LogoutViewModel.cs │ │ │ │ │ ├── ExternalProvider.cs │ │ │ │ │ └── LoginInputModel.cs │ │ │ │ ├── Home │ │ │ │ │ └── ErrorViewModel.cs │ │ │ │ └── Consent │ │ │ │ │ ├── ConsentInputModel.cs │ │ │ │ │ ├── ScopeViewModel.cs │ │ │ │ │ └── ProcessConsentResult.cs │ │ │ └── QuickstartIdentityServer.csproj │ │ ├── JavaScriptClient │ │ │ ├── package.json │ │ │ ├── JavaScriptClient.csproj │ │ │ ├── wwwroot │ │ │ │ ├── index.html │ │ │ │ └── callback.html │ │ │ ├── Startup.cs │ │ │ └── Program.cs │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ └── Program.cs │ │ ├── Client │ │ │ └── Client.csproj │ │ └── ResourceOwnerClient │ │ │ └── ResourceOwnerClient.csproj │ └── readme.md ├── 3_ImplicitFlowAuthentication │ ├── src │ │ ├── MvcClient │ │ │ ├── wwwroot │ │ │ │ ├── js │ │ │ │ │ ├── site.min.js │ │ │ │ │ └── site.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── lib │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── jquery │ │ │ │ │ │ └── .bower.json │ │ │ │ ├── css │ │ │ │ │ └── site.min.css │ │ │ │ └── _references.js │ │ │ ├── .bowerrc │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Home │ │ │ │ │ ├── Index.cshtml │ │ │ │ │ └── Secure.cshtml │ │ │ │ └── Shared │ │ │ │ │ └── Error.cshtml │ │ │ ├── bower.json │ │ │ ├── appsettings.json │ │ │ ├── MvcClient.csproj │ │ │ ├── bundleconfig.json │ │ │ └── Program.cs │ │ ├── QuickstartIdentityServer │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── _ValidationSummary.cshtml │ │ │ │ ├── Account │ │ │ │ │ └── Logout.cshtml │ │ │ │ └── Diagnostics │ │ │ │ │ └── Index.cshtml │ │ │ ├── updateUI.ps1 │ │ │ ├── wwwroot │ │ │ │ ├── icon.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── favicon.ico │ │ │ │ ├── js │ │ │ │ │ └── signout-redirect.js │ │ │ │ └── lib │ │ │ │ │ └── bootstrap │ │ │ │ │ └── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── Quickstart │ │ │ │ ├── Account │ │ │ │ │ ├── LogoutInputModel.cs │ │ │ │ │ ├── LogoutViewModel.cs │ │ │ │ │ ├── ExternalProvider.cs │ │ │ │ │ └── LoginInputModel.cs │ │ │ │ ├── Home │ │ │ │ │ └── ErrorViewModel.cs │ │ │ │ └── Consent │ │ │ │ │ ├── ConsentInputModel.cs │ │ │ │ │ ├── ScopeViewModel.cs │ │ │ │ │ └── ProcessConsentResult.cs │ │ │ ├── QuickstartIdentityServer.csproj │ │ │ └── Program.cs │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ └── Program.cs │ │ ├── Client │ │ │ └── Client.csproj │ │ └── ResourceOwnerClient │ │ │ └── ResourceOwnerClient.csproj │ └── readme.md ├── 5_HybridFlowAuthenticationWithApiAccess │ ├── src │ │ ├── MvcClient │ │ │ ├── wwwroot │ │ │ │ ├── js │ │ │ │ │ ├── site.min.js │ │ │ │ │ └── site.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── lib │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── jquery │ │ │ │ │ │ └── .bower.json │ │ │ │ ├── css │ │ │ │ │ └── site.min.css │ │ │ │ └── _references.js │ │ │ ├── .bowerrc │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── Json.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ └── Home │ │ │ │ │ └── Index.cshtml │ │ │ ├── bower.json │ │ │ ├── appsettings.json │ │ │ ├── MvcClient.csproj │ │ │ ├── bundleconfig.json │ │ │ └── Program.cs │ │ ├── QuickstartIdentityServer │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── _ValidationSummary.cshtml │ │ │ │ ├── Account │ │ │ │ │ └── Logout.cshtml │ │ │ │ └── Diagnostics │ │ │ │ │ └── Index.cshtml │ │ │ ├── updateUI.ps1 │ │ │ ├── wwwroot │ │ │ │ ├── icon.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── favicon.ico │ │ │ │ ├── js │ │ │ │ │ └── signout-redirect.js │ │ │ │ └── lib │ │ │ │ │ └── bootstrap │ │ │ │ │ └── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── Quickstart │ │ │ │ ├── Account │ │ │ │ │ ├── LogoutInputModel.cs │ │ │ │ │ ├── LogoutViewModel.cs │ │ │ │ │ ├── ExternalProvider.cs │ │ │ │ │ └── LoginInputModel.cs │ │ │ │ ├── Home │ │ │ │ │ └── ErrorViewModel.cs │ │ │ │ └── Consent │ │ │ │ │ ├── ConsentInputModel.cs │ │ │ │ │ ├── ScopeViewModel.cs │ │ │ │ │ └── ProcessConsentResult.cs │ │ │ ├── QuickstartIdentityServer.csproj │ │ │ └── Program.cs │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ └── Program.cs │ │ ├── Client │ │ │ └── Client.csproj │ │ └── ResourceOwnerClient │ │ │ └── ResourceOwnerClient.csproj │ └── readme.md ├── 4_ImplicitFlowAuthenticationWithExternal │ ├── src │ │ ├── MvcClient │ │ │ ├── wwwroot │ │ │ │ ├── js │ │ │ │ │ ├── site.min.js │ │ │ │ │ └── site.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── lib │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ └── js │ │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── jquery │ │ │ │ │ │ └── .bower.json │ │ │ │ ├── css │ │ │ │ │ └── site.min.css │ │ │ │ └── _references.js │ │ │ ├── .bowerrc │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ └── Home │ │ │ │ │ ├── Index.cshtml │ │ │ │ │ └── Secure.cshtml │ │ │ ├── bower.json │ │ │ ├── appsettings.json │ │ │ ├── MvcClient.csproj │ │ │ ├── bundleconfig.json │ │ │ ├── Program.cs │ │ │ └── Properties │ │ │ │ └── launchSettings.json │ │ ├── QuickstartIdentityServer │ │ │ ├── Views │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ ├── _ViewImports.cshtml │ │ │ │ ├── Shared │ │ │ │ │ └── _ValidationSummary.cshtml │ │ │ │ └── Account │ │ │ │ │ └── Logout.cshtml │ │ │ ├── wwwroot │ │ │ │ ├── icon.jpg │ │ │ │ ├── icon.png │ │ │ │ ├── favicon.ico │ │ │ │ └── js │ │ │ │ │ └── signout-redirect.js │ │ │ ├── Quickstart │ │ │ │ ├── Account │ │ │ │ │ ├── ApplicationUser.cs │ │ │ │ │ ├── LogoutInputModel.cs │ │ │ │ │ ├── LogoutViewModel.cs │ │ │ │ │ ├── ExternalProvider.cs │ │ │ │ │ └── LoginInputModel.cs │ │ │ │ ├── Home │ │ │ │ │ └── ErrorViewModel.cs │ │ │ │ └── Consent │ │ │ │ │ ├── ConsentInputModel.cs │ │ │ │ │ ├── ScopeViewModel.cs │ │ │ │ │ └── ProcessConsentResult.cs │ │ │ ├── QuickstartIdentityServer.csproj │ │ │ └── Program.cs │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ ├── Program.cs │ │ │ └── Properties │ │ │ │ └── launchSettings.json │ │ ├── Client │ │ │ └── Client.csproj │ │ └── ResourceOwnerClient │ │ │ └── ResourceOwnerClient.csproj │ └── readme.md ├── 1_ClientCredentials │ ├── src │ │ ├── Api │ │ │ ├── appsettings.json │ │ │ ├── Api.csproj │ │ │ ├── Controllers │ │ │ │ └── IdentityController.cs │ │ │ └── Program.cs │ │ ├── Client │ │ │ └── Client.csproj │ │ └── QuickstartIdentityServer │ │ │ ├── QuickstartIdentityServer.csproj │ │ │ └── Program.cs │ └── readme.md └── 2_ResourceOwnerPasswords │ └── src │ ├── Api │ ├── appsettings.json │ ├── Api.csproj │ ├── Controllers │ │ └── IdentityController.cs │ └── Program.cs │ ├── Client │ └── Client.csproj │ ├── ResourceOwnerClient │ └── ResourceOwnerClient.csproj │ └── QuickstartIdentityServer │ ├── QuickstartIdentityServer.csproj │ └── Program.cs └── Practice ├── 01_RoleAndClaim └── src │ ├── QuickstartIdentityServer │ ├── UserRepository.cs │ ├── QuickstartIdentityServer.csproj │ └── Program.cs │ ├── Api │ ├── appsettings.json │ ├── Api.csproj │ └── Program.cs │ ├── Client │ └── Client.csproj │ └── ResourceOwnerClient │ └── ResourceOwnerClient.csproj ├── 04_HTTPS └── src │ ├── Api │ ├── appsettings.json │ ├── Api.csproj │ ├── Controllers │ │ └── IdentityController.cs │ └── Program.cs │ ├── Client │ └── Client.csproj │ ├── ResourceOwnerClient │ └── ResourceOwnerClient.csproj │ └── QuickstartIdentityServer │ ├── QuickstartIdentityServer.csproj │ └── Program.cs └── 02_AccessTokenLifetime └── src ├── Api ├── appsettings.json ├── Api.csproj ├── Controllers │ └── IdentityController.cs └── Program.cs ├── Client └── Client.csproj ├── ResourceOwnerClient └── ResourceOwnerClient.csproj └── QuickstartIdentityServer ├── QuickstartIdentityServer.csproj └── Program.cs /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Views/Shared/Json.cshtml: -------------------------------------------------------------------------------- 1 |

API response

2 | 3 |
@ViewBag.Json
-------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Views/Shared/Json.cshtml: -------------------------------------------------------------------------------- 1 |

API response

2 | 3 |
@ViewBag.Json
-------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/Views/Shared/Json.cshtml: -------------------------------------------------------------------------------- 1 |

API response

2 | 3 |
@ViewBag.Json
-------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/Views/Shared/Json.cshtml: -------------------------------------------------------------------------------- 1 |

API response

2 | 3 |
@ViewBag.Json
-------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using MvcClient 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using MvcClient 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using MvcClient 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using MvcClient 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |

OpenID Connect MVC Client

-------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |

OpenID Connect MVC Client

-------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |

OpenID Connect MVC Client

-------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/QuickstartIdentityServer/UserRepository.cs: -------------------------------------------------------------------------------- 1 | namespace QuickstartIdentityServer 2 | { 3 | public class UserRepository 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |

OpenID Connect MVC Client

-------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using MvcClient 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using MvcClient 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/readme.md: -------------------------------------------------------------------------------- 1 | # Quickstart #4: Adding external Authentication 2 | 3 | This quickstart adds support for Tencent QQ authentication. 4 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |

OpenID Connect MVC Client

-------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |

OpenID Connect MVC Client

-------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/readme.md: -------------------------------------------------------------------------------- 1 | # Quickstart #8: EntityFramework configuration 2 | 3 | This quickstart shows how to use EntityFramework for the configuration data. 4 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | "DefaultConnection": "Data Source=AspIdUsers.db;" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/JavaScriptClient/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "name": "asp.net", 4 | "private": true, 5 | "devDependencies": { 6 | "oidc-client": "1.2.2" 7 | } 8 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/JavaScriptClient/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "name": "asp.net", 4 | "private": true, 5 | "devDependencies": { 6 | "oidc-client": "1.2.2" 7 | } 8 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/icon.jpg -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/icon.png -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/updateUI.ps1: -------------------------------------------------------------------------------- 1 | iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/IdentityServer/IdentityServer4.Quickstart.UI/release/get.ps1')) -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/updateUI.ps1: -------------------------------------------------------------------------------- 1 | iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/IdentityServer/IdentityServer4.Quickstart.UI/release/get.ps1')) -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/icon.jpg -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/icon.png -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/icon.jpg -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/icon.png -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/icon.jpg -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/icon.png -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/updateUI.ps1: -------------------------------------------------------------------------------- 1 | iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/IdentityServer/IdentityServer4.Quickstart.UI/release/get.ps1')) -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Practice/04_HTTPS/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/icon.jpg -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/icon.png -------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/1_ClientCredentials/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/icon.jpg -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/icon.png -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/lettersonly.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("lettersonly", function(value, element) { 2 | return this.optional(element) || /^[a-z]+$/i.test(value); 3 | }, "Letters only please"); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/nowhitespace.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("nowhitespace", function(value, element) { 2 | return this.optional(element) || /^\S+$/i.test(value); 3 | }, "No white space please"); 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/Api/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/integer.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("integer", function(value, element) { 2 | return this.optional(element) || /^-?\d+$/.test(value); 3 | }, "A positive or negative non-decimal number please"); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/zipcodeUS.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("zipcodeUS", function(value, element) { 2 | return this.optional(element) || /^\d{5}(-\d{4})?$/.test(value); 3 | }, "The specified US ZIP Code is invalid"); 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/alphanumeric.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("alphanumeric", function(value, element) { 2 | return this.optional(element) || /^\w+$/i.test(value); 3 | }, "Letters, numbers, and underscores only please"); 4 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |
4 | Error 5 |
6 |
7 | } -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |
4 | Error 5 |
6 |
7 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |
4 | Error 5 |
6 |
7 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |
4 | Error 5 |
6 |
7 | } -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/postalcodeNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("postalcodeNL", function(value, element) { 2 | return this.optional(element) || /^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(value); 3 | }, "Please specify a valid postal code"); 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/letterswithbasicpunc.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("letterswithbasicpunc", function(value, element) { 2 | return this.optional(element) || /^[a-z\-.,()'"\s]+$/i.test(value); 3 | }, "Letters or punctuation only please"); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/time.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("time", function(value, element) { 2 | return this.optional(element) || /^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(value); 3 | }, "Please enter a valid time, between 00:00 and 23:59"); 4 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |
4 | Error 5 |
6 |
7 | } -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |
4 | Error 5 |
6 |
7 | } -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/ziprange.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("ziprange", function(value, element) { 2 | return this.optional(element) || /^90[2-5]\d\{2\}-\d{4}$/.test(value); 3 | }, "Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx"); 4 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/dateNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("dateNL", function(value, element) { 2 | return this.optional(element) || /^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(value); 3 | }, $.validator.messages.date); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/postalcodeIT.js: -------------------------------------------------------------------------------- 1 | /* Matches Italian postcode (CAP) */ 2 | $.validator.addMethod("postalcodeIT", function(value, element) { 3 | return this.optional(element) || /^\d{5}$/.test(value); 4 | }, "Please specify a valid postal code"); 5 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/time12h.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("time12h", function(value, element) { 2 | return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(value); 3 | }, "Please enter a valid time in 12-hour am/pm format"); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ApplicationInsights": { 3 | "InstrumentationKey": "" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Debug", 9 | "System": "Information", 10 | "Microsoft": "Information" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ApplicationInsights": { 3 | "InstrumentationKey": "" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Debug", 9 | "System": "Information", 10 | "Microsoft": "Information" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ApplicationInsights": { 3 | "InstrumentationKey": "" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Debug", 9 | "System": "Information", 10 | "Microsoft": "Information" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YSGStudyHards/IdentityServer4.Samples/HEAD/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ApplicationInsights": { 3 | "InstrumentationKey": "" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Debug", 9 | "System": "Information", 10 | "Microsoft": "Information" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Practice/04_HTTPS/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/Views/Home/Secure.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Secure"; 3 | } 4 |

@ViewData["Title"]

5 | 6 |

User claims

7 | 8 |
9 | @foreach (var claim in User.Claims) 10 | { 11 |
@claim.Type
12 |
@claim.Value
13 | 14 | } 15 |
16 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/readme.md: -------------------------------------------------------------------------------- 1 | # Quickstart #6: IdentityServer and ASP.NET Identity 2 | 3 | This quickstart uses ASP.NET Identity for identity management. 4 | 5 | ## Tutorial 6 | 7 | The tutorial that goes along with this sample can be found here [Using ASP.NET Core Identity](http://docs.identityserver.io/en/release/quickstarts/6_aspnet_identity.html) 8 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/mobileNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("mobileNL", function(value, element) { 2 | return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(value); 3 | }, "Please specify a valid mobile number"); 4 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/readme.md: -------------------------------------------------------------------------------- 1 | # Quickstart #7: JavaScript clients 2 | 3 | This quickstart shows how to build a JavaScript client for IdentityServer. 4 | 5 | ## Tutorial 6 | 7 | The tutorial that goes along with this sample can be found here [Adding a JavaScript client](http://docs.identityserver.io/en/release/quickstarts/7_javascript_client.html) 8 | 9 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ApplicationInsights": { 3 | "InstrumentationKey": "" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Debug", 9 | "System": "Information", 10 | "Microsoft": "Information" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ApplicationInsights": { 3 | "InstrumentationKey": "" 4 | }, 5 | "Logging": { 6 | "IncludeScopes": false, 7 | "LogLevel": { 8 | "Default": "Debug", 9 | "System": "Information", 10 | "Microsoft": "Information" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/1_ClientCredentials/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/Views/Home/Secure.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Secure"; 3 | } 4 |

@ViewData["Title"]

5 | 6 |

User claims

7 | 8 |
9 | @foreach (var claim in User.Claims) 10 | { 11 |
@claim.Type
12 |
@claim.Value
13 | 14 | } 15 |
16 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/dateFA.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("dateFA", function(value, element) { 2 | return this.optional(element) || /^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(value); 3 | }, $.validator.messages.date); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/notEqualTo.js: -------------------------------------------------------------------------------- 1 | jQuery.validator.addMethod( "notEqualTo", function( value, element, param ) { 2 | return this.optional(element) || !$.validator.methods.equalTo.call( this, value, element, param ); 3 | }, "Please enter a different value, values must not be the same." ); 4 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/JavaScriptClient/JavaScriptClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /Practice/04_HTTPS/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/Client/Client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/giroaccountNL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Dutch giro account numbers (not bank numbers) have max 7 digits 3 | */ 4 | $.validator.addMethod("giroaccountNL", function(value, element) { 5 | return this.optional(element) || /^[0-9]{1,7}$/.test(value); 6 | }, "Please specify a valid giro account number"); 7 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/ipv4.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("ipv4", function(value, element) { 2 | return this.optional(element) || /^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(value); 3 | }, "Please enter a valid IP v4 address."); 4 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/strippedminlength.js: -------------------------------------------------------------------------------- 1 | // TODO check if value starts with <, otherwise don't try stripping anything 2 | $.validator.addMethod("strippedminlength", function(value, element, param) { 3 | return $(value).text().length >= param; 4 | }, $.validator.format("Please enter at least {0} characters")); 5 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/localization/methods_pt.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: PT_BR 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Account/ApplicationUser.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Identity; 2 | 3 | namespace QuickstartIdentityServer.Quickstart.Account 4 | { 5 | // Add profile data for application users by adding properties to the ApplicationUser class 6 | public class ApplicationUser : IdentityUser 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/localization/methods_nl.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: NL 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value); 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Practice/04_HTTPS/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/ResourceOwnerClient/ResourceOwnerClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | Exe 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | -------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | -------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Practice/04_HTTPS/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Quickstarts/1_ClientCredentials/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/bankorgiroaccountNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("bankorgiroaccountNL", function(value, element) { 2 | return this.optional(element) || 3 | ($.validator.methods.bankaccountNL.call(this, value, element)) || 4 | ($.validator.methods.giroaccountNL.call(this, value, element)); 5 | }, "Please specify a valid bank or giro account number"); 6 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Quickstarts/1_ClientCredentials/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/MvcClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/readme.md: -------------------------------------------------------------------------------- 1 | # Quickstart #3: User Authentication using OpenID Connect Implicit Flow 2 | 3 | This quickstart adds support for interactive user authentication using the OpenID Connect implicit flow. 4 | 5 | ## Tutorial 6 | 7 | The tutorial that goes along with this sample can be found here [Adding User Authentication with OpenID Connect](http://docs.identityserver.io/en/release/quickstarts/3_interactive_login.html) 8 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/phoneNL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Dutch phone numbers have 10 digits (or 11 and start with +31). 3 | */ 4 | $.validator.addMethod("phoneNL", function(value, element) { 5 | return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value); 6 | }, "Please specify a valid phone number."); 7 | -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/Api/Api.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/postalcodeBR.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Valida CEPs do brasileiros: 3 | * 4 | * Formatos aceitos: 5 | * 99999-999 6 | * 99.999-999 7 | * 99999999 8 | */ 9 | $.validator.addMethod("postalcodeBR", function(cep_value, element) { 10 | return this.optional(element) || /^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test( cep_value ); 11 | }, "Informe um CEP válido."); 12 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Account/LogoutInputModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutInputModel 8 | { 9 | public string LogoutId { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/MvcClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Account/LogoutInputModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutInputModel 8 | { 9 | public string LogoutId { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/JavaScriptClient/JavaScriptClient.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Account/LogoutInputModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutInputModel 8 | { 9 | public string LogoutId { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Account/LogoutInputModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutInputModel 8 | { 9 | public string LogoutId { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Account/LogoutInputModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutInputModel 8 | { 9 | public string LogoutId { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/JavaScriptClient/wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

13 | 
14 |     
15 |     
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Account/LogoutInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutInputModel
 8 |     {
 9 |         public string LogoutId { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Account/LogoutViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutViewModel : LogoutInputModel
 8 |     {
 9 |         public bool ShowLogoutPrompt { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/JavaScriptClient/wwwroot/index.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |     
 5 |     
 6 | 
 7 | 
 8 |     
 9 |     
10 |     
11 | 
12 |     

13 | 
14 |     
15 |     
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Account/LogoutViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutViewModel : LogoutInputModel
 8 |     {
 9 |         public bool ShowLogoutPrompt { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Home/ErrorViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using IdentityServer4.Models;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ErrorViewModel
10 |     {
11 |         public ErrorMessage Error { get; set; }
12 |     }
13 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Account/LogoutViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutViewModel : LogoutInputModel
 8 |     {
 9 |         public bool ShowLogoutPrompt { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Account/LogoutViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutViewModel : LogoutInputModel
 8 |     {
 9 |         public bool ShowLogoutPrompt { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Models/ApplicationUser.cs:
--------------------------------------------------------------------------------
 1 | using System;
 2 | using System.Collections.Generic;
 3 | using System.Linq;
 4 | using System.Threading.Tasks;
 5 | using Microsoft.AspNetCore.Identity;
 6 | 
 7 | namespace IdentityServerWithAspNetIdentity.Models
 8 | {
 9 |     // Add profile data for application users by adding properties to the ApplicationUser class
10 |     public class ApplicationUser : IdentityUser
11 |     {
12 |     }
13 | }
14 | 


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Home/ErrorViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using IdentityServer4.Models;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ErrorViewModel
10 |     {
11 |         public ErrorMessage Error { get; set; }
12 |     }
13 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Home/ErrorViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using IdentityServer4.Models;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ErrorViewModel
10 |     {
11 |         public ErrorMessage Error { get; set; }
12 |     }
13 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Home/ErrorViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using IdentityServer4.Models;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ErrorViewModel
10 |     {
11 |         public ErrorMessage Error { get; set; }
12 |     }
13 | }


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Account/LogoutViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutViewModel : LogoutInputModel
 8 |     {
 9 |         public bool ShowLogoutPrompt { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Account/LogoutViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class LogoutViewModel : LogoutInputModel
 8 |     {
 9 |         public bool ShowLogoutPrompt { get; set; }
10 |     }
11 | }
12 | 


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/readme.md:
--------------------------------------------------------------------------------
1 | # Quickstart #5: OpenID Connect Hybrid Flow Authentication and API Access Tokens
2 | 
3 | This quickstart we combine what we learned in the previous quickstarts and we explored both API access and user authentication. 
4 | 
5 | ## Tutorial
6 | 
7 | The tutorial that goes along with this sample can be found here [Switching to Hybrid Flow and adding API Access back](http://docs.identityserver.io/en/release/quickstarts/5_hybrid_and_api_access.html)
8 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/MvcClient/MvcClient.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Home/ErrorViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using IdentityServer4.Models;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ErrorViewModel
10 |     {
11 |         public ErrorMessage Error { get; set; }
12 |     }
13 | }


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Home/ErrorViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using IdentityServer4.Models;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ErrorViewModel
10 |     {
11 |         public ErrorMessage Error { get; set; }
12 |     }
13 | }


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/MvcClient/MvcClient.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/JavaScriptClient/wwwroot/callback.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |     
 5 |     
 6 | 
 7 | 
 8 |     
 9 |     
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Account/ExternalProvider.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ExternalProvider
 8 |     {
 9 |         public string DisplayName { get; set; }
10 |         public string AuthenticationScheme { get; set; }
11 |     }
12 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/MvcClient.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/1_ClientCredentials/readme.md:
--------------------------------------------------------------------------------
 1 | # Quickstart #1: Securing an API using Client Credentials
 2 | 
 3 | The first quickstart sets up a minimal identityserver that shows how to protect an API using the OAuth 2.0 client credentials grant.
 4 | This approach is typically used for server to server communication.
 5 | 
 6 | ## Tutorial
 7 | 
 8 | The tutorial that goes along with this sample can be found here [Client Credentials](http://docs.identityserver.io/en/release/quickstarts/1_client_credentials.html)
 9 | 
10 | 
11 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Account/ExternalProvider.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ExternalProvider
 8 |     {
 9 |         public string DisplayName { get; set; }
10 |         public string AuthenticationScheme { get; set; }
11 |     }
12 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/localization/methods_fi.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Localized default methods for the jQuery validation plugin.
 3 |  * Locale: FI
 4 |  */
 5 | $.extend($.validator.methods, {
 6 | 	date: function(value, element) {
 7 | 		return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value);
 8 | 	},
 9 | 	number: function(value, element) {
10 | 		return this.optional(element) || /^-?(?:\d+)(?:,\d+)?$/.test(value);
11 | 	}
12 | });
13 | 


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/JavaScriptClient/wwwroot/callback.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |     
 5 |     
 6 | 
 7 | 
 8 |     
 9 |     
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Account/ExternalProvider.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ExternalProvider
 8 |     {
 9 |         public string DisplayName { get; set; }
10 |         public string AuthenticationScheme { get; set; }
11 |     }
12 | }


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Account/ExternalProvider.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ExternalProvider
 8 |     {
 9 |         public string DisplayName { get; set; }
10 |         public string AuthenticationScheme { get; set; }
11 |     }
12 | }


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/MvcClient.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Account/ExternalProvider.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ExternalProvider
 8 |     {
 9 |         public string DisplayName { get; set; }
10 |         public string AuthenticationScheme { get; set; }
11 |     }
12 | }


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Account/ExternalProvider.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ExternalProvider
 8 |     {
 9 |         public string DisplayName { get; set; }
10 |         public string AuthenticationScheme { get; set; }
11 |     }
12 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/localization/methods_de.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Localized default methods for the jQuery validation plugin.
 3 |  * Locale: DE
 4 |  */
 5 | $.extend($.validator.methods, {
 6 | 	date: function(value, element) {
 7 | 		return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);
 8 | 	},
 9 | 	number: function(value, element) {
10 | 		return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
11 | 	}
12 | });
13 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/localization/methods_es_CL.js:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Localized default methods for the jQuery validation plugin.
 3 |  * Locale: ES_CL
 4 |  */
 5 | $.extend($.validator.methods, {
 6 | 	date: function(value, element) {
 7 | 		return this.optional(element) || /^\d\d?\-\d\d?\-\d\d\d?\d?$/.test(value);
 8 | 	},
 9 | 	number: function(value, element) {
10 | 		return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
11 | 	}
12 | });
13 | 


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/extension.js:
--------------------------------------------------------------------------------
1 | // Older "accept" file extension method. Old docs: http://docs.jquery.com/Plugins/Validation/Methods/accept
2 | $.validator.addMethod("extension", function(value, element, param) {
3 | 	param = typeof param === "string" ? param.replace(/,/g, "|") : "png|jpe?g|gif";
4 | 	return this.optional(element) || value.match(new RegExp("\\.(" + param + ")$", "i"));
5 | }, $.validator.format("Please enter a value with a valid extension."));
6 | 


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 | 
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/postcodeUK.js:
--------------------------------------------------------------------------------
1 | // Matches UK postcode. Does not match to UK Channel Islands that have their own postcodes (non standard UK)
2 | $.validator.addMethod("postcodeUK", function(value, element) {
3 | 	return this.optional(element) || /^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value);
4 | }, "Please specify a valid UK postcode");
5 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
 2 | require('../../js/transition.js')
 3 | require('../../js/alert.js')
 4 | require('../../js/button.js')
 5 | require('../../js/carousel.js')
 6 | require('../../js/collapse.js')
 7 | require('../../js/dropdown.js')
 8 | require('../../js/modal.js')
 9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
 2 | require('../../js/transition.js')
 3 | require('../../js/alert.js')
 4 | require('../../js/button.js')
 5 | require('../../js/carousel.js')
 6 | require('../../js/collapse.js')
 7 | require('../../js/dropdown.js')
 8 | require('../../js/modal.js')
 9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
 2 | require('../../js/transition.js')
 3 | require('../../js/alert.js')
 4 | require('../../js/button.js')
 5 | require('../../js/carousel.js')
 6 | require('../../js/collapse.js')
 7 | require('../../js/dropdown.js')
 8 | require('../../js/modal.js')
 9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
 2 | require('../../js/transition.js')
 3 | require('../../js/alert.js')
 4 | require('../../js/button.js')
 5 | require('../../js/carousel.js')
 6 | require('../../js/collapse.js')
 7 | require('../../js/dropdown.js')
 8 | require('../../js/modal.js')
 9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
 2 | require('../../js/transition.js')
 3 | require('../../js/alert.js')
 4 | require('../../js/button.js')
 5 | require('../../js/carousel.js')
 6 | require('../../js/collapse.js')
 7 | require('../../js/dropdown.js')
 8 | require('../../js/modal.js')
 9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
 2 | require('../../js/transition.js')
 3 | require('../../js/alert.js')
 4 | require('../../js/button.js')
 5 | require('../../js/carousel.js')
 6 | require('../../js/collapse.js')
 7 | require('../../js/dropdown.js')
 8 | require('../../js/modal.js')
 9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Consent/ConsentInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.Collections.Generic;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ConsentInputModel
10 |     {
11 |         public string Button { get; set; }
12 |         public IEnumerable ScopesConsented { get; set; }
13 |         public bool RememberConsent { get; set; }
14 |         public string ReturnUrl { get; set; }
15 |     }
16 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Consent/ConsentInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.Collections.Generic;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ConsentInputModel
10 |     {
11 |         public string Button { get; set; }
12 |         public IEnumerable ScopesConsented { get; set; }
13 |         public bool RememberConsent { get; set; }
14 |         public string ReturnUrl { get; set; }
15 |     }
16 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Consent/ConsentInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.Collections.Generic;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ConsentInputModel
10 |     {
11 |         public string Button { get; set; }
12 |         public IEnumerable ScopesConsented { get; set; }
13 |         public bool RememberConsent { get; set; }
14 |         public string ReturnUrl { get; set; }
15 |     }
16 | }


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Consent/ConsentInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.Collections.Generic;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ConsentInputModel
10 |     {
11 |         public string Button { get; set; }
12 |         public IEnumerable ScopesConsented { get; set; }
13 |         public bool RememberConsent { get; set; }
14 |         public string ReturnUrl { get; set; }
15 |     }
16 | }


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Consent/ConsentInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.Collections.Generic;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ConsentInputModel
10 |     {
11 |         public string Button { get; set; }
12 |         public IEnumerable ScopesConsented { get; set; }
13 |         public bool RememberConsent { get; set; }
14 |         public string ReturnUrl { get; set; }
15 |     }
16 | }


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Consent/ConsentInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.Collections.Generic;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class ConsentInputModel
10 |     {
11 |         public string Button { get; set; }
12 |         public IEnumerable ScopesConsented { get; set; }
13 |         public bool RememberConsent { get; set; }
14 |         public string ReturnUrl { get; set; }
15 |     }
16 | }


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Consent/ScopeViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ScopeViewModel
 8 |     {
 9 |         public string Name { get; set; }
10 |         public string DisplayName { get; set; }
11 |         public string Description { get; set; }
12 |         public bool Emphasize { get; set; }
13 |         public bool Required { get; set; }
14 |         public bool Checked { get; set; }
15 |     }
16 | }
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Consent/ScopeViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ScopeViewModel
 8 |     {
 9 |         public string Name { get; set; }
10 |         public string DisplayName { get; set; }
11 |         public string Description { get; set; }
12 |         public bool Emphasize { get; set; }
13 |         public bool Required { get; set; }
14 |         public bool Checked { get; set; }
15 |     }
16 | }
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/MvcClient/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "jquery",
 3 |   "main": "dist/jquery.js",
 4 |   "license": "MIT",
 5 |   "ignore": [
 6 |     "package.json"
 7 |   ],
 8 |   "keywords": [
 9 |     "jquery",
10 |     "javascript",
11 |     "browser",
12 |     "library"
13 |   ],
14 |   "homepage": "https://github.com/jquery/jquery-dist",
15 |   "version": "2.2.0",
16 |   "_release": "2.2.0",
17 |   "_resolution": {
18 |     "type": "version",
19 |     "tag": "2.2.0",
20 |     "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 |   },
22 |   "_source": "git://github.com/jquery/jquery-dist.git",
23 |   "_target": "2.2.0",
24 |   "_originalSource": "jquery"
25 | }


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.ComponentModel.DataAnnotations;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class LoginInputModel
10 |     {
11 |         [Required]
12 |         public string Username { get; set; }
13 |         [Required]
14 |         public string Password { get; set; }
15 |         public bool RememberLogin { get; set; }
16 |         public string ReturnUrl { get; set; }
17 |     }
18 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Consent/ScopeViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ScopeViewModel
 8 |     {
 9 |         public string Name { get; set; }
10 |         public string DisplayName { get; set; }
11 |         public string Description { get; set; }
12 |         public bool Emphasize { get; set; }
13 |         public bool Required { get; set; }
14 |         public bool Checked { get; set; }
15 |     }
16 | }
17 | 


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Consent/ScopeViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ScopeViewModel
 8 |     {
 9 |         public string Name { get; set; }
10 |         public string DisplayName { get; set; }
11 |         public string Description { get; set; }
12 |         public bool Emphasize { get; set; }
13 |         public bool Required { get; set; }
14 |         public bool Checked { get; set; }
15 |     }
16 | }
17 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.ComponentModel.DataAnnotations;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class LoginInputModel
10 |     {
11 |         [Required]
12 |         public string Username { get; set; }
13 |         [Required]
14 |         public string Password { get; set; }
15 |         public bool RememberLogin { get; set; }
16 |         public string ReturnUrl { get; set; }
17 |     }
18 | }


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/MvcClient/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "jquery",
 3 |   "main": "dist/jquery.js",
 4 |   "license": "MIT",
 5 |   "ignore": [
 6 |     "package.json"
 7 |   ],
 8 |   "keywords": [
 9 |     "jquery",
10 |     "javascript",
11 |     "browser",
12 |     "library"
13 |   ],
14 |   "homepage": "https://github.com/jquery/jquery-dist",
15 |   "version": "2.2.0",
16 |   "_release": "2.2.0",
17 |   "_resolution": {
18 |     "type": "version",
19 |     "tag": "2.2.0",
20 |     "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 |   },
22 |   "_source": "git://github.com/jquery/jquery-dist.git",
23 |   "_target": "2.2.0",
24 |   "_originalSource": "jquery"
25 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.ComponentModel.DataAnnotations;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class LoginInputModel
10 |     {
11 |         [Required]
12 |         public string Username { get; set; }
13 |         [Required]
14 |         public string Password { get; set; }
15 |         public bool RememberLogin { get; set; }
16 |         public string ReturnUrl { get; set; }
17 |     }
18 | }


--------------------------------------------------------------------------------
/Practice/04_HTTPS/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.ComponentModel.DataAnnotations;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class LoginInputModel
10 |     {
11 |         [Required]
12 |         public string Username { get; set; }
13 |         [Required]
14 |         public string Password { get; set; }
15 |         public bool RememberLogin { get; set; }
16 |         public string ReturnUrl { get; set; }
17 |     }
18 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/MvcClient/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "jquery",
 3 |   "main": "dist/jquery.js",
 4 |   "license": "MIT",
 5 |   "ignore": [
 6 |     "package.json"
 7 |   ],
 8 |   "keywords": [
 9 |     "jquery",
10 |     "javascript",
11 |     "browser",
12 |     "library"
13 |   ],
14 |   "homepage": "https://github.com/jquery/jquery-dist",
15 |   "version": "2.2.0",
16 |   "_release": "2.2.0",
17 |   "_resolution": {
18 |     "type": "version",
19 |     "tag": "2.2.0",
20 |     "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 |   },
22 |   "_source": "git://github.com/jquery/jquery-dist.git",
23 |   "_target": "2.2.0",
24 |   "_originalSource": "jquery"
25 | }


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "jquery",
 3 |   "main": "dist/jquery.js",
 4 |   "license": "MIT",
 5 |   "ignore": [
 6 |     "package.json"
 7 |   ],
 8 |   "keywords": [
 9 |     "jquery",
10 |     "javascript",
11 |     "browser",
12 |     "library"
13 |   ],
14 |   "homepage": "https://github.com/jquery/jquery-dist",
15 |   "version": "2.2.0",
16 |   "_release": "2.2.0",
17 |   "_resolution": {
18 |     "type": "version",
19 |     "tag": "2.2.0",
20 |     "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 |   },
22 |   "_source": "git://github.com/jquery/jquery-dist.git",
23 |   "_target": "2.2.0",
24 |   "_originalSource": "jquery"
25 | }


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Consent/ScopeViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ScopeViewModel
 8 |     {
 9 |         public string Name { get; set; }
10 |         public string DisplayName { get; set; }
11 |         public string Description { get; set; }
12 |         public bool Emphasize { get; set; }
13 |         public bool Required { get; set; }
14 |         public bool Checked { get; set; }
15 |     }
16 | }
17 | 


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Consent/ScopeViewModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | namespace IdentityServer4.Quickstart.UI
 6 | {
 7 |     public class ScopeViewModel
 8 |     {
 9 |         public string Name { get; set; }
10 |         public string DisplayName { get; set; }
11 |         public string Description { get; set; }
12 |         public bool Emphasize { get; set; }
13 |         public bool Required { get; set; }
14 |         public bool Checked { get; set; }
15 |     }
16 | }
17 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/JavaScriptClient/Startup.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using Microsoft.AspNetCore.Builder;
 5 | using Microsoft.Extensions.DependencyInjection;
 6 | 
 7 | namespace JavaScriptClient
 8 | {
 9 |     public class Startup
10 |     {
11 |         public void ConfigureServices(IServiceCollection services)
12 |         {
13 |         }
14 | 
15 |         public void Configure(IApplicationBuilder app)
16 |         {
17 |             app.UseDefaultFiles();
18 |             app.UseStaticFiles();
19 |         }
20 |     }
21 | }
22 | 


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.ComponentModel.DataAnnotations;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class LoginInputModel
10 |     {
11 |         [Required]
12 |         public string Username { get; set; }
13 |         [Required]
14 |         public string Password { get; set; }
15 |         public bool RememberLogin { get; set; }
16 |         public string ReturnUrl { get; set; }
17 |     }
18 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/JavaScriptClient/Startup.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using Microsoft.AspNetCore.Builder;
 5 | using Microsoft.Extensions.DependencyInjection;
 6 | 
 7 | namespace JavaScriptClient
 8 | {
 9 |     public class Startup
10 |     {
11 |         public void ConfigureServices(IServiceCollection services)
12 |         {
13 |         }
14 | 
15 |         public void Configure(IApplicationBuilder app)
16 |         {
17 |             app.UseDefaultFiles();
18 |             app.UseStaticFiles();
19 |         }
20 |     }
21 | }
22 | 


--------------------------------------------------------------------------------
/Practice/02_AccessTokenLifetime/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/1_ClientCredentials/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "jquery",
 3 |   "main": "dist/jquery.js",
 4 |   "license": "MIT",
 5 |   "ignore": [
 6 |     "package.json"
 7 |   ],
 8 |   "keywords": [
 9 |     "jquery",
10 |     "javascript",
11 |     "browser",
12 |     "library"
13 |   ],
14 |   "homepage": "https://github.com/jquery/jquery-dist",
15 |   "version": "2.2.0",
16 |   "_release": "2.2.0",
17 |   "_resolution": {
18 |     "type": "version",
19 |     "tag": "2.2.0",
20 |     "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 |   },
22 |   "_source": "git://github.com/jquery/jquery-dist.git",
23 |   "_target": "2.2.0",
24 |   "_originalSource": "jquery"
25 | }


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | 
 5 | using System.ComponentModel.DataAnnotations;
 6 | 
 7 | namespace IdentityServer4.Quickstart.UI
 8 | {
 9 |     public class LoginInputModel
10 |     {
11 |         [Required]
12 |         public string Username { get; set; }
13 |         [Required]
14 |         public string Password { get; set; }
15 |         public bool RememberLogin { get; set; }
16 |         public string ReturnUrl { get; set; }
17 |     }
18 | }


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "jquery",
 3 |   "main": "dist/jquery.js",
 4 |   "license": "MIT",
 5 |   "ignore": [
 6 |     "package.json"
 7 |   ],
 8 |   "keywords": [
 9 |     "jquery",
10 |     "javascript",
11 |     "browser",
12 |     "library"
13 |   ],
14 |   "homepage": "https://github.com/jquery/jquery-dist",
15 |   "version": "2.2.0",
16 |   "_release": "2.2.0",
17 |   "_resolution": {
18 |     "type": "version",
19 |     "tag": "2.2.0",
20 |     "commit": "6fc01e29bdad0964f62ef56d01297039cdcadbe5"
21 |   },
22 |   "_source": "git://github.com/jquery/jquery-dist.git",
23 |   "_target": "2.2.0",
24 |   "_originalSource": "jquery"
25 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/postalCodeCA.js:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * Matches a valid Canadian Postal Code
 3 |  *
 4 |  * @example jQuery.validator.methods.postalCodeCA( "H0H 0H0", element )
 5 |  * @result true
 6 |  *
 7 |  * @example jQuery.validator.methods.postalCodeCA( "H0H0H0", element )
 8 |  * @result false
 9 |  *
10 |  * @name jQuery.validator.methods.postalCodeCA
11 |  * @type Boolean
12 |  * @cat Plugins/Validate/Methods
13 |  */
14 | $.validator.addMethod( "postalCodeCA", function( value, element ) {
15 | 	return this.optional( element ) || /^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/.test( value );
16 | }, "Please specify a valid postal code" );
17 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/2_ResourceOwnerPasswords/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/8_EntityFrameworkStorage/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/3_ImplicitFlowAuthentication/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     netcoreapp2.0
 5 |   
 6 | 
 7 |   
 8 |     
 9 |     
10 |   
11 | 
12 |   
13 |     
14 |   
15 | 
16 |   
17 |     
18 |   
19 | 
20 | 
21 | 


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
 1 | Copyright (c) .NET Foundation. All rights reserved.
 2 | 
 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
 4 | these files except in compliance with the License. You may obtain a copy of the
 5 | License at
 6 | 
 7 | http://www.apache.org/licenses/LICENSE-2.0
 8 | 
 9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 | 


--------------------------------------------------------------------------------
/Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/Api/Controllers/IdentityController.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System.Linq;
 5 | using Microsoft.AspNetCore.Mvc;
 6 | using Microsoft.AspNetCore.Authorization;
 7 | 
 8 | namespace Api.Controllers
 9 | {
10 |     [Route("[controller]")]
11 |     [Authorize]
12 |     public class IdentityController : ControllerBase
13 |     {
14 |         [HttpGet]
15 |         public IActionResult Get()
16 |         {
17 |             return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
18 |         }
19 |     }
20 | }


--------------------------------------------------------------------------------
/Practice/04_HTTPS/src/Api/Program.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System;
 5 | using Microsoft.AspNetCore;
 6 | using Microsoft.AspNetCore.Hosting;
 7 | 
 8 | namespace Api
 9 | {
10 |     public class Program
11 |     {
12 |         public static void Main(string[] args)
13 |         {
14 |             Console.Title = "API";
15 | 
16 |             BuildWebHost(args).Run();
17 |         }
18 | 
19 |         public static IWebHost BuildWebHost(string[] args) =>
20 |             WebHost.CreateDefaultBuilder(args)
21 |                 .UseStartup()
22 |                 .Build();
23 |     }
24 | }


--------------------------------------------------------------------------------
/Quickstarts/6_AspNetIdentity/src/MvcClient/bundleconfig.json:
--------------------------------------------------------------------------------
 1 | // Configure bundling and minification for the project.
 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241
 3 | [
 4 |   {
 5 |     "outputFileName": "wwwroot/css/site.min.css",
 6 |     // An array of relative input file paths. Globbing patterns supported
 7 |     "inputFiles": [
 8 |       "wwwroot/css/site.css"
 9 |     ]
10 |   },
11 |   {
12 |     "outputFileName": "wwwroot/js/site.min.js",
13 |     "inputFiles": [
14 |       "wwwroot/js/site.js"
15 |     ],
16 |     // Optionally specify minification options
17 |     "minify": {
18 |       "enabled": true,
19 |       "renameLocals": true
20 |     },
21 |     // Optinally generate .map file
22 |     "sourceMap": false
23 |   }
24 | ]
25 | 


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/MvcClient/bundleconfig.json:
--------------------------------------------------------------------------------
 1 | // Configure bundling and minification for the project.
 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241
 3 | [
 4 |   {
 5 |     "outputFileName": "wwwroot/css/site.min.css",
 6 |     // An array of relative input file paths. Globbing patterns supported
 7 |     "inputFiles": [
 8 |       "wwwroot/css/site.css"
 9 |     ]
10 |   },
11 |   {
12 |     "outputFileName": "wwwroot/js/site.min.js",
13 |     "inputFiles": [
14 |       "wwwroot/js/site.js"
15 |     ],
16 |     // Optionally specify minification options
17 |     "minify": {
18 |       "enabled": true,
19 |       "renameLocals": true
20 |     },
21 |     // Optinally generate .map file
22 |     "sourceMap": false
23 |   }
24 | ]
25 | 


--------------------------------------------------------------------------------
/Practice/01_RoleAndClaim/src/Api/Program.cs:
--------------------------------------------------------------------------------
 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
 3 | 
 4 | using System;
 5 | using Microsoft.AspNetCore;
 6 | using Microsoft.AspNetCore.Hosting;
 7 | 
 8 | namespace Api
 9 | {
10 |     public class Program
11 |     {
12 |         public static void Main(string[] args)
13 |         {
14 |             Console.Title = "API";
15 | 
16 |             BuildWebHost(args).Run();
17 |         }
18 | 
19 |         public static IWebHost BuildWebHost(string[] args) =>
20 |             WebHost.CreateDefaultBuilder(args)
21 |                 .UseStartup()
22 |                 .Build();
23 |     }
24 | }


--------------------------------------------------------------------------------
/Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Views/Account/Logout.cshtml:
--------------------------------------------------------------------------------
 1 | @model LogoutViewModel
 2 | 
 3 | 
4 | 7 | 8 |
9 |
10 |

Would you like to logout of IdentityServer?

11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |
21 |
-------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/1_ClientCredentials/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optinally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optinally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Views/Account/Logout.cshtml: -------------------------------------------------------------------------------- 1 | @model LogoutViewModel 2 | 3 |
4 | 7 | 8 |
9 |
10 |

Would you like to logout of IdentityServer?

11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |
21 |
-------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Views/Account/Logout.cshtml: -------------------------------------------------------------------------------- 1 | @model LogoutViewModel 2 | 3 |
4 | 7 | 8 |
9 |
10 |

Would you like to logout of IdentityServer?

11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |
21 |
-------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Consent/ProcessConsentResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ProcessConsentResult 8 | { 9 | public bool IsRedirect => RedirectUri != null; 10 | public string RedirectUri { get; set; } 11 | 12 | public bool ShowView => ViewModel != null; 13 | public ConsentViewModel ViewModel { get; set; } 14 | 15 | public bool HasValidationError => ValidationError != null; 16 | public string ValidationError { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/QuickstartIdentityServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Views/Account/Logout.cshtml: -------------------------------------------------------------------------------- 1 | @model LogoutViewModel 2 | 3 |
4 | 7 | 8 |
9 |
10 |

Would you like to logout of IdentityServer?

11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |
21 |
-------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Consent/ProcessConsentResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ProcessConsentResult 8 | { 9 | public bool IsRedirect => RedirectUri != null; 10 | public string RedirectUri { get; set; } 11 | 12 | public bool ShowView => ViewModel != null; 13 | public ConsentViewModel ViewModel { get; set; } 14 | 15 | public bool HasValidationError => ValidationError != null; 16 | public string ValidationError { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Quickstart/Consent/ProcessConsentResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ProcessConsentResult 8 | { 9 | public bool IsRedirect => RedirectUri != null; 10 | public string RedirectUri { get; set; } 11 | 12 | public bool ShowView => ViewModel != null; 13 | public ConsentViewModel ViewModel { get; set; } 14 | 15 | public bool HasValidationError => ValidationError != null; 16 | public string ValidationError { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Quickstart/Consent/ProcessConsentResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ProcessConsentResult 8 | { 9 | public bool IsRedirect => RedirectUri != null; 10 | public string RedirectUri { get; set; } 11 | 12 | public bool ShowView => ViewModel != null; 13 | public ConsentViewModel ViewModel { get; set; } 14 | 15 | public bool HasValidationError => ValidationError != null; 16 | public string ValidationError { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optinally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/bundleconfig.json: -------------------------------------------------------------------------------- 1 | // Configure bundling and minification for the project. 2 | // More info at https://go.microsoft.com/fwlink/?LinkId=808241 3 | [ 4 | { 5 | "outputFileName": "wwwroot/css/site.min.css", 6 | // An array of relative input file paths. Globbing patterns supported 7 | "inputFiles": [ 8 | "wwwroot/css/site.css" 9 | ] 10 | }, 11 | { 12 | "outputFileName": "wwwroot/js/site.min.js", 13 | "inputFiles": [ 14 | "wwwroot/js/site.js" 15 | ], 16 | // Optionally specify minification options 17 | "minify": { 18 | "enabled": true, 19 | "renameLocals": true 20 | }, 21 | // Optinally generate .map file 22 | "sourceMap": false 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace MvcClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "MVC Client"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Views/Account/Logout.cshtml: -------------------------------------------------------------------------------- 1 | @model LogoutViewModel 2 | 3 |
4 | 7 | 8 |
9 |
10 |

Would you like to logout of IdentityServer?

11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |
21 |
-------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/Api/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace Api 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "API"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Views/Account/Logout.cshtml: -------------------------------------------------------------------------------- 1 | @model LogoutViewModel 2 | 3 |
4 | 7 | 8 |
9 |
10 |

Would you like to logout of IdentityServer?

11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |
21 |
-------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/src/additional/pattern.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Return true if the field value matches the given format RegExp 3 | * 4 | * @example $.validator.methods.pattern("AR1004",element,/^AR\d{4}$/) 5 | * @result true 6 | * 7 | * @example $.validator.methods.pattern("BR1004",element,/^AR\d{4}$/) 8 | * @result false 9 | * 10 | * @name $.validator.methods.pattern 11 | * @type Boolean 12 | * @cat Plugins/Validate/Methods 13 | */ 14 | $.validator.addMethod("pattern", function(value, element, param) { 15 | if (this.optional(element)) { 16 | return true; 17 | } 18 | if (typeof param === "string") { 19 | param = new RegExp("^(?:" + param + ")$"); 20 | } 21 | return param.test(value); 22 | }, "Invalid format."); 23 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace MvcClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "MVC Client"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Views/Diagnostics/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model DiagnosticsViewModel 2 | 3 |

Authentication cookie

4 | 5 |

Claims

6 |
7 | @foreach (var claim in Model.AuthenticateResult.Principal.Claims) 8 | { 9 |
@claim.Type
10 |
@claim.Value
11 | } 12 |
13 | 14 |

Properties

15 |
16 | @foreach (var prop in Model.AuthenticateResult.Properties.Items) 17 | { 18 |
@prop.Key
19 |
@prop.Value
20 | } 21 |
22 | 23 | @if (Model.Clients.Any()) 24 | { 25 |

Clients

26 |
    27 | @foreach (var client in Model.Clients) 28 | { 29 |
  • @client
  • 30 | } 31 |
32 | } -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Quickstart/Consent/ProcessConsentResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ProcessConsentResult 8 | { 9 | public bool IsRedirect => RedirectUri != null; 10 | public string RedirectUri { get; set; } 11 | 12 | public bool ShowView => ViewModel != null; 13 | public ConsentViewModel ViewModel { get; set; } 14 | 15 | public bool HasValidationError => ValidationError != null; 16 | public string ValidationError { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Quickstart/Consent/ProcessConsentResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ProcessConsentResult 8 | { 9 | public bool IsRedirect => RedirectUri != null; 10 | public string RedirectUri { get; set; } 11 | 12 | public bool ShowView => ViewModel != null; 13 | public ConsentViewModel ViewModel { get; set; } 14 | 15 | public bool HasValidationError => ValidationError != null; 16 | public string ValidationError { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Views/Diagnostics/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model DiagnosticsViewModel 2 | 3 |

Authentication cookie

4 | 5 |

Claims

6 |
7 | @foreach (var claim in Model.AuthenticateResult.Principal.Claims) 8 | { 9 |
@claim.Type
10 |
@claim.Value
11 | } 12 |
13 | 14 |

Properties

15 |
16 | @foreach (var prop in Model.AuthenticateResult.Properties.Items) 17 | { 18 |
@prop.Key
19 |
@prop.Value
20 | } 21 |
22 | 23 | @if (Model.Clients.Any()) 24 | { 25 |

Clients

26 |
    27 | @foreach (var client in Model.Clients) 28 | { 29 |
  • @client
  • 30 | } 31 |
32 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace MvcClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "MVC Client"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/QuickstartIdentityServer/Views/Diagnostics/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model DiagnosticsViewModel 2 | 3 |

Authentication cookie

4 | 5 |

Claims

6 |
7 | @foreach (var claim in Model.AuthenticateResult.Principal.Claims) 8 | { 9 |
@claim.Type
10 |
@claim.Value
11 | } 12 |
13 | 14 |

Properties

15 |
16 | @foreach (var prop in Model.AuthenticateResult.Properties.Items) 17 | { 18 |
@prop.Key
19 |
@prop.Value
20 | } 21 |
22 | 23 | @if (Model.Clients.Any()) 24 | { 25 |

Clients

26 |
    27 | @foreach (var client in Model.Clients) 28 | { 29 |
  • @client
  • 30 | } 31 |
32 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace MvcClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "MVC Client"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Views/Diagnostics/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model DiagnosticsViewModel 2 | 3 |

Authentication cookie

4 | 5 |

Claims

6 |
7 | @foreach (var claim in Model.AuthenticateResult.Principal.Claims) 8 | { 9 |
@claim.Type
10 |
@claim.Value
11 | } 12 |
13 | 14 |

Properties

15 |
16 | @foreach (var prop in Model.AuthenticateResult.Properties.Items) 17 | { 18 |
@prop.Key
19 |
@prop.Value
20 | } 21 |
22 | 23 | @if (Model.Clients.Any()) 24 | { 25 |

Clients

26 |
    27 | @foreach (var client in Model.Clients) 28 | { 29 |
  • @client
  • 30 | } 31 |
32 | } -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/wwwroot/lib/jquery-validation/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0" 31 | } 32 | -------------------------------------------------------------------------------- /Practice/04_HTTPS/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace MvcClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "MVC Client"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/MvcClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace MvcClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "MVC Client"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Views/Diagnostics/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model DiagnosticsViewModel 2 | 3 |

Authentication cookie

4 | 5 |

Claims

6 |
7 | @foreach (var claim in Model.AuthenticateResult.Principal.Claims) 8 | { 9 |
@claim.Type
10 |
@claim.Value
11 | } 12 |
13 | 14 |

Properties

15 |
16 | @foreach (var prop in Model.AuthenticateResult.Properties.Items) 17 | { 18 |
@prop.Key
19 |
@prop.Value
20 | } 21 |
22 | 23 | @if (Model.Clients.Any()) 24 | { 25 |

Clients

26 |
    27 | @foreach (var client in Model.Clients) 28 | { 29 |
  • @client
  • 30 | } 31 |
32 | } -------------------------------------------------------------------------------- /Practice/01_RoleAndClaim/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/JavaScriptClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace JavaScriptClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/JavaScriptClient/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace JavaScriptClient 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Practice/02_AccessTokenLifetime/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/1_ClientCredentials/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/MvcClient/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:5002", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "MvcClient": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:5002" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | 8 |

Development Mode

9 |

10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |

12 |

13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |

15 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | 8 |

Development Mode

9 |

10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |

12 |

13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |

15 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/2_ResourceOwnerPasswords/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/MvcClient/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | 8 |

Development Mode

9 |

10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |

12 |

13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |

15 | -------------------------------------------------------------------------------- /Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/8_EntityFrameworkStorage/src/MvcClient/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | 8 |

Development Mode

9 |

10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |

12 |

13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |

15 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:5001", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchUrl": "api/values", 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "Api": { 19 | "commandName": "Project", 20 | "launchUrl": "http://localhost:5000/api/values", 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:5001" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/MvcClient/Views/Home/Secure.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Authentication; 2 | @{ 3 | ViewData["Title"] = "Secure"; 4 | } 5 |

@ViewData["Title"]

6 | 7 |

User claims

8 | 9 | 12 | 15 | 16 |
17 | @foreach (var claim in User.Claims) 18 | { 19 |
@claim.Type
20 |
@claim.Value
21 | 22 | } 23 |
access token
24 |
@await ViewContext.HttpContext.GetTokenAsync("access_token")
25 | 26 |
refresh token
27 |
@await ViewContext.HttpContext.GetTokenAsync("refresh_token")
28 |
29 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/QuickstartIdentityServer/Quickstart/Consent/ConsentViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace IdentityServer4.Quickstart.UI 8 | { 9 | public class ConsentViewModel : ConsentInputModel 10 | { 11 | public string ClientName { get; set; } 12 | public string ClientUrl { get; set; } 13 | public string ClientLogoUrl { get; set; } 14 | public bool AllowRememberConsent { get; set; } 15 | 16 | public IEnumerable IdentityScopes { get; set; } 17 | public IEnumerable ResourceScopes { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Quickstarts/4_ImplicitFlowAuthenticationWithExternal/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/5_HybridFlowAuthenticationWithApiAccess/src/QuickstartIdentityServer/Program.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | using System; 5 | using Microsoft.AspNetCore; 6 | using Microsoft.AspNetCore.Hosting; 7 | 8 | namespace QuickstartIdentityServer 9 | { 10 | public class Program 11 | { 12 | public static void Main(string[] args) 13 | { 14 | Console.Title = "IdentityServer"; 15 | 16 | BuildWebHost(args).Run(); 17 | } 18 | 19 | public static IWebHost BuildWebHost(string[] args) => 20 | WebHost.CreateDefaultBuilder(args) 21 | .UseStartup() 22 | .Build(); 23 | } 24 | } -------------------------------------------------------------------------------- /Quickstarts/6_AspNetIdentity/src/IdentityServerWithAspNetIdentity/Quickstart/Consent/ConsentViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace IdentityServer4.Quickstart.UI 8 | { 9 | public class ConsentViewModel : ConsentInputModel 10 | { 11 | public string ClientName { get; set; } 12 | public string ClientUrl { get; set; } 13 | public string ClientLogoUrl { get; set; } 14 | public bool AllowRememberConsent { get; set; } 15 | 16 | public IEnumerable IdentityScopes { get; set; } 17 | public IEnumerable ResourceScopes { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Quickstarts/7_JavaScriptClient/src/MvcClient/Views/Home/Secure.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Authentication; 2 | @{ 3 | ViewData["Title"] = "Secure"; 4 | } 5 |

@ViewData["Title"]

6 | 7 |

User claims

8 | 9 | 12 | 15 | 16 |
17 | @foreach (var claim in User.Claims) 18 | { 19 |
@claim.Type
20 |
@claim.Value
21 | 22 | } 23 |
access token
24 |
@await ViewContext.HttpContext.GetTokenAsync("access_token")
25 | 26 |
refresh token
27 |
@await ViewContext.HttpContext.GetTokenAsync("refresh_token")
28 |
29 | --------------------------------------------------------------------------------