13 |
@Model.ClientName
14 |
15 |
![[Logo] (150x150)](@Model.LogoUri)
16 |
17 |
18 |
@Model.Description
19 |
20 | @if (Model.ClientUri != null)
21 | {
22 | - Homepage
23 | }
24 | @if (Model.PolicyUri != null)
25 | {
26 | - Policy
27 | }
28 | @if (Model.TosUri != null)
29 | {
30 | - Terms of Service
31 | }
32 |
33 |
34 |
35 |
36 |
37 |
38 | @if (Model.Scopes != null)
39 | {
40 |
Permissions
41 |
42 |
The application is requesting the following permissions.
43 |
44 | @foreach (var scope in Model.Scopes)
45 | {
46 | - @scope.Name
47 | - @scope.Description
48 | }
49 |
50 |
51 | }
52 |
53 |
Authorization
54 |
55 | @if (Model.User != null)
56 | {
57 |
Hello @Model.User.Name,
58 | }
59 |
Do you grant authorization to the application?
60 |
61 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/AuthorizationServer/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "LogLevel": {
5 | "Default": "Debug",
6 | "System": "Information",
7 | "Microsoft": "Information"
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/AuthorizationServer/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "IncludeScopes": false,
4 | "Debug": {
5 | "LogLevel": {
6 | "Default": "Warning"
7 | }
8 | },
9 | "Console": {
10 | "LogLevel": {
11 | "Default": "Warning"
12 | }
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/AuthorizationServer/authlete.properties:
--------------------------------------------------------------------------------
1 | #===================================================================
2 | # Authlete Configuration File
3 | #
4 | # There are several ways to construct an IAuthleteConfiguration
5 | # instance which represents "authlete configuration".
6 | # AuthletePropertiesConfiguration is one of implementations of
7 | # the IAuthleteConfiguration interface. This file can be used
8 | # as input for AuthletePropertiesConfiguration. See the API
9 | # document of authlete-csharp library for details.
10 | #
11 | # authlete-csharp library
12 | # Source: https://github.com/authlete/authlete-csharp
13 | # API Doc: https://authlete.github.io/authlete-csharp/
14 | # NuGet: https://www.nuget.org/packages/Authlete.Authlete
15 | #
16 | #===================================================================
17 |
18 |
19 | # base_url
20 | #
21 | # The base URL of an Authlete server. If you are using the
22 | # shared server, set "https://api.authlete.com" to this
23 | # parameter. On the other hand, if you are using a dedicated
24 | # server, please contact "Authlete, Inc."