@@ -91,15 +91,23 @@ If you have not made customizations to the IdentityServer UI templates, consider
91
91
92
92
A couple of compilation errors and required changes you may encounter:
93
93
94
- - The ` IIdentityServerInteractionService.GetAllUserConsentsAsync ` method was renamed to ` IIdentityServerInteractionService.GetAllUserGrantsAsync `
95
- - ` ConsentResponse.Denied ` was removed. Use the ` DenyAuthorizationAsync ` instead:
94
+ * When configuring scopes in memory, you need to register the scopes on startup.
95
+
96
+ ``` diff lang="csharp" title="Program.cs"
97
+ builder.Services.AddIdentityServer()
98
+ .AddInMemory...
99
+ + .AddInMemoryApiScopes(Config.ApiScopes)
100
+ ```
101
+
102
+ * The ` IIdentityServerInteractionService.GetAllUserConsentsAsync ` method was renamed to ` IIdentityServerInteractionService.GetAllUserGrantsAsync `
103
+ * ` ConsentResponse.Denied ` was removed. Use the ` DenyAuthorizationAsync ` instead:
96
104
97
105
``` diff lang="csharp" title="*.cs"
98
106
- await _interaction.GrantConsentAsync(context, ConsentResponse.Denied);
99
107
+ await _interaction.DenyAuthorizationAsync(context, AuthorizationError.AccessDenied);
100
108
```
101
109
102
- - No overload method ` SignInAsync ` takes N arguments. The ` HttpContext.SignInAsync ` signature changed:
110
+ * No overload method ` SignInAsync ` takes N arguments. The ` HttpContext.SignInAsync ` signature changed:
103
111
104
112
``` diff lang="csharp" title="*.cs"
105
113
// issue authentication cookie with subject ID and username
@@ -109,7 +117,7 @@ A couple of compilation errors and required changes you may encounter:
109
117
+ DisplayName = user.Username
110
118
+ };
111
119
+
112
- + await HttpContext.SignInAsync(isuser);
120
+ + await HttpContext.SignInAsync(isuser, props );
113
121
```
114
122
115
123
* ` AuthorizationRequest ` doesn't contain definition for ` ClientId ` :
0 commit comments