├── ProCodeGuide.IdServer4.Client ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Home │ │ ├── Privacy.cshtml │ │ └── Index.cshtml │ └── Shared │ │ ├── _ValidationScriptsPartial.cshtml │ │ ├── Error.cshtml │ │ └── _Layout.cshtml ├── wwwroot │ ├── favicon.ico │ ├── js │ │ └── site.js │ ├── lib │ │ ├── jquery-validation-unobtrusive │ │ │ └── LICENSE.txt │ │ ├── jquery-validation │ │ │ └── LICENSE.md │ │ ├── bootstrap │ │ │ ├── LICENSE │ │ │ └── dist │ │ │ │ └── css │ │ │ │ └── bootstrap-reboot.min.css │ │ └── jquery │ │ │ └── LICENSE.txt │ └── css │ │ └── site.css ├── appsettings.Development.json ├── appsettings.json ├── Models │ └── ErrorViewModel.cs ├── ProCodeGuide.IdServer4.Client.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── Controllers │ └── HomeController.cs └── Startup.cs ├── ProCodeGuide.Samples.IdentityServer4 ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Account │ │ ├── AccessDenied.cshtml │ │ ├── Logout.cshtml │ │ ├── LoggedOut.cshtml │ │ └── Login.cshtml │ ├── Device │ │ ├── Success.cshtml │ │ └── UserCodeCapture.cshtml │ ├── Shared │ │ ├── _ValidationSummary.cshtml │ │ ├── Redirect.cshtml │ │ ├── _Layout.cshtml │ │ ├── _Nav.cshtml │ │ ├── _ScopeListItem.cshtml │ │ └── Error.cshtml │ ├── Home │ │ └── Index.cshtml │ ├── Diagnostics │ │ └── Index.cshtml │ └── Grants │ │ └── Index.cshtml ├── wwwroot │ ├── lib │ │ ├── bootstrap │ │ │ ├── scss │ │ │ │ ├── utilities │ │ │ │ │ ├── _clearfix.scss │ │ │ │ │ ├── _overflow.scss │ │ │ │ │ ├── _screenreaders.scss │ │ │ │ │ ├── _visibility.scss │ │ │ │ │ ├── _shadows.scss │ │ │ │ │ ├── _float.scss │ │ │ │ │ ├── _align.scss │ │ │ │ │ ├── _background.scss │ │ │ │ │ ├── _stretched-link.scss │ │ │ │ │ ├── _sizing.scss │ │ │ │ │ ├── _position.scss │ │ │ │ │ ├── _display.scss │ │ │ │ │ ├── _embed.scss │ │ │ │ │ ├── _borders.scss │ │ │ │ │ ├── _text.scss │ │ │ │ │ ├── _spacing.scss │ │ │ │ │ └── _flex.scss │ │ │ │ ├── _media.scss │ │ │ │ ├── mixins │ │ │ │ │ ├── _clearfix.scss │ │ │ │ │ ├── _size.scss │ │ │ │ │ ├── _lists.scss │ │ │ │ │ ├── _text-truncate.scss │ │ │ │ │ ├── _visibility.scss │ │ │ │ │ ├── _resize.scss │ │ │ │ │ ├── _alert.scss │ │ │ │ │ ├── _text-hide.scss │ │ │ │ │ ├── _badge.scss │ │ │ │ │ ├── _nav-divider.scss │ │ │ │ │ ├── _transition.scss │ │ │ │ │ ├── _float.scss │ │ │ │ │ ├── _list-group.scss │ │ │ │ │ ├── _text-emphasis.scss │ │ │ │ │ ├── _reset-text.scss │ │ │ │ │ ├── _pagination.scss │ │ │ │ │ ├── _box-shadow.scss │ │ │ │ │ ├── _deprecate.scss │ │ │ │ │ ├── _background-variant.scss │ │ │ │ │ ├── _hover.scss │ │ │ │ │ ├── _screen-reader.scss │ │ │ │ │ ├── _table-row.scss │ │ │ │ │ ├── _image.scss │ │ │ │ │ ├── _border-radius.scss │ │ │ │ │ ├── _caret.scss │ │ │ │ │ ├── _grid-framework.scss │ │ │ │ │ ├── _gradients.scss │ │ │ │ │ ├── _grid.scss │ │ │ │ │ └── _buttons.scss │ │ │ │ ├── _transitions.scss │ │ │ │ ├── bootstrap-reboot.scss │ │ │ │ ├── _jumbotron.scss │ │ │ │ ├── _utilities.scss │ │ │ │ ├── _root.scss │ │ │ │ ├── bootstrap-grid.scss │ │ │ │ ├── bootstrap.scss │ │ │ │ ├── _close.scss │ │ │ │ ├── _toasts.scss │ │ │ │ ├── _code.scss │ │ │ │ ├── _mixins.scss │ │ │ │ ├── _spinners.scss │ │ │ │ ├── _images.scss │ │ │ │ ├── _progress.scss │ │ │ │ ├── _badge.scss │ │ │ │ ├── _alert.scss │ │ │ │ ├── _breadcrumb.scss │ │ │ │ ├── _grid.scss │ │ │ │ ├── _pagination.scss │ │ │ │ ├── _nav.scss │ │ │ │ ├── _type.scss │ │ │ │ ├── _tooltip.scss │ │ │ │ ├── _buttons.scss │ │ │ │ ├── _print.scss │ │ │ │ ├── _button-group.scss │ │ │ │ └── _tables.scss │ │ │ ├── LICENSE │ │ │ └── dist │ │ │ │ └── css │ │ │ │ └── bootstrap-reboot.min.css │ │ └── jquery │ │ │ ├── LICENSE.txt │ │ │ └── README.md │ ├── js │ │ ├── signin-redirect.js │ │ └── signout-redirect.js │ ├── icon.jpg │ ├── icon.png │ ├── favicon.ico │ └── css │ │ ├── site.min.css │ │ ├── site.css │ │ └── site.scss ├── appsettings.Development.json ├── appsettings.json ├── ProCodeGuide.Samples.IdentityServer4.csproj ├── Quickstart │ ├── Account │ │ ├── LogoutInputModel.cs │ │ ├── RedirectViewModel.cs │ │ ├── LogoutViewModel.cs │ │ ├── ExternalProvider.cs │ │ ├── LoginInputModel.cs │ │ ├── AccountOptions.cs │ │ ├── LoggedOutViewModel.cs │ │ └── LoginViewModel.cs │ ├── Device │ │ ├── DeviceAuthorizationInputModel.cs │ │ └── DeviceAuthorizationViewModel.cs │ ├── Consent │ │ ├── ScopeViewModel.cs │ │ ├── ConsentInputModel.cs │ │ ├── ConsentViewModel.cs │ │ ├── ProcessConsentResult.cs │ │ └── ConsentOptions.cs │ ├── Home │ │ ├── ErrorViewModel.cs │ │ └── HomeController.cs │ ├── Grants │ │ ├── GrantsViewModel.cs │ │ └── GrantsController.cs │ ├── Extensions.cs │ ├── Diagnostics │ │ ├── DiagnosticsController.cs │ │ └── DiagnosticsViewModel.cs │ ├── SecurityHeadersAttribute.cs │ └── TestUsers.cs ├── IdentityConfiguration │ ├── Scopes.cs │ ├── Users.cs │ ├── Resources.cs │ └── Clients.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── tempkey.jwk └── Startup.cs ├── ProCodeGuide.IdServer4.WebAPI ├── appsettings.Development.json ├── appsettings.json ├── WeatherForecast.cs ├── ProCodeGuide.IdServer4.WebAPI.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── Controllers │ └── WeatherForecastController.cs └── Startup.cs ├── ProCodeGuide.IdServer4.WebAPI.Client ├── appsettings.Development.json ├── appsettings.json ├── ProCodeGuide.IdServer4.WebAPI.Client.csproj ├── Services │ ├── IIdentityServer4Service.cs │ └── IdentityServer4Service.cs ├── Models │ └── WeatherForecast.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── Startup.cs └── Controllers │ └── WeatherController.cs ├── README.md ├── .gitattributes └── ProCodeGuide.Samples.IdentityServer4.sln /ProCodeGuide.IdServer4.Client/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/lib/bootstrap/scss/utilities/_clearfix.scss: -------------------------------------------------------------------------------- 1 | .clearfix { 2 | @include clearfix(); 3 | } 4 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServerHost.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/js/signin-redirect.js: -------------------------------------------------------------------------------- 1 | window.location.href = document.querySelector("meta[http-equiv=refresh]").getAttribute("data-url"); 2 | -------------------------------------------------------------------------------- /ProCodeGuide.IdServer4.Client/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/procodeguide/ProCodeGuide.Samples.IdentityServer4/HEAD/ProCodeGuide.IdServer4.Client/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/procodeguide/ProCodeGuide.Samples.IdentityServer4/HEAD/ProCodeGuide.Samples.IdentityServer4/wwwroot/icon.jpg -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/procodeguide/ProCodeGuide.Samples.IdentityServer4/HEAD/ProCodeGuide.Samples.IdentityServer4/wwwroot/icon.png -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/lib/bootstrap/scss/_media.scss: -------------------------------------------------------------------------------- 1 | .media { 2 | display: flex; 3 | align-items: flex-start; 4 | } 5 | 6 | .media-body { 7 | flex: 1; 8 | } 9 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/procodeguide/ProCodeGuide.Samples.IdentityServer4/HEAD/ProCodeGuide.Samples.IdentityServer4/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ProCodeGuide.IdServer4.Client/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using ProCodeGuide.IdServer4.Client 2 | @using ProCodeGuide.IdServer4.Client.Models 3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 4 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/lib/bootstrap/scss/mixins/_clearfix.scss: -------------------------------------------------------------------------------- 1 | @mixin clearfix() { 2 | &::after { 3 | display: block; 4 | clear: both; 5 | content: ""; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /ProCodeGuide.IdServer4.Client/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |
Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/wwwroot/lib/bootstrap/scss/utilities/_overflow.scss: -------------------------------------------------------------------------------- 1 | // stylelint-disable declaration-no-important 2 | 3 | @each $value in $overflows { 4 | .overflow-#{$value} { overflow: $value !important; } 5 | } 6 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/Views/Account/AccessDenied.cshtml: -------------------------------------------------------------------------------- 1 | 2 |You do not have access to that resource.
6 |You have successfully authorized the device
6 |Learn about building Web apps with ASP.NET Core.
8 |Once complete, you may close this tab.
7 |Would you like to logut of IdentityServer?
7 |Please enter the code displayed on your device.
7 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /ProCodeGuide.IdServer4.WebAPI/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:62575", 8 | "sslPort": 44394 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "swagger", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "ProCodeGuide.IdServer4.WebAPI": { 21 | "commandName": "Project", 22 | "dotnetRunMessages": "true", 23 | "launchBrowser": true, 24 | "launchUrl": "swagger", 25 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /ProCodeGuide.Samples.IdentityServer4/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |