28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/AuthorizationServer/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
--------------------------------------------------------------------------------
/AuthorizationServer/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
--------------------------------------------------------------------------------
/AuthorizationServer/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/AuthorizationServer/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | },
9 | "AllowedHosts": "*"
10 | }
11 |
--------------------------------------------------------------------------------
/AuthorizationServer/wwwroot/css/site.css:
--------------------------------------------------------------------------------
1 | :focus {
2 | outline: 0 !important;
3 | }
4 | .input-validation-error {
5 | border: 1px solid darkred;
6 | }
7 | form {
8 | width: 100%;
9 | }
10 | .form-control {
11 | border:0;
12 | border-radius: 0;
13 | border-bottom: 1px solid lightgray;
14 | font-size:0.9rem;
15 | }
16 | .form-control:focus{
17 | border-bottom-color: lightgray;
18 | box-shadow: none;
19 | }
20 | .form-control.form-control-last {
21 | border-bottom: 0;
22 | }
23 | .form-control::placeholder {
24 | opacity: 0.6;
25 | }
26 | .form-control.input-validation-error {
27 | border: 1px solid darkred;
28 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Robin van der Knaap
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Authorization Server: OpenIddict
2 | Authorization Server implemented with [OpenIddict 3](https://github.com/openiddict/openiddict-core).
3 |
4 | This repository is part of a blog series: [Setting up an authorization server with OpenIddict](https://dev.to/robinvanderknaap/setting-up-an-authorization-server-with-openiddict-part-i-introduction-4jid).
5 |
6 | ## Prerequisites
7 | - [.NET 6](https://dotnet.microsoft.com/)
8 |
9 | ## Getting started
10 | Open up a terminal in the root folder
11 |
12 | dotnet run --project AuthorizationServer
13 |
14 | Visit [https://localhost:5001](https://localhost:5001). In case of certificate errors run the following command:
15 |
16 | dotnet dev-certs https --trust
17 |
--------------------------------------------------------------------------------