-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Bump OpenIddict to 6.1.1 #17582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump OpenIddict to 6.1.1 #17582
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -178,6 +178,12 @@ public void Configure(OpenIddictServerOptions options) | |
| options.Scopes.Add(Scopes.Phone); | ||
| options.Scopes.Add(Scopes.Profile); | ||
| options.Scopes.Add(Scopes.Roles); | ||
|
|
||
| // Note: caching is enabled for both authorization and end session requests to allow sending | ||
| // large POST authorization and end session requests, but can be programmatically disabled, as the | ||
| // authorization and end session views support flowing the entire payload and not just the request_uri. | ||
| options.EnableAuthorizationRequestCaching = true; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: these options were moved to |
||
| options.EnableEndSessionRequestCaching = true; | ||
| } | ||
|
|
||
| public void Configure(OpenIddictServerDataProtectionOptions options) | ||
|
|
@@ -202,12 +208,6 @@ public void Configure(string name, OpenIddictServerAspNetCoreOptions options) | |
| options.EnableTokenEndpointPassthrough = true; | ||
| options.EnableUserInfoEndpointPassthrough = true; | ||
|
|
||
| // Note: caching is enabled for both authorization and end session requests to allow sending | ||
| // large POST authorization and end session requests, but can be programmatically disabled, as the | ||
| // authorization and end session views support flowing the entire payload and not just the request_id. | ||
| options.EnableAuthorizationRequestCaching = true; | ||
| options.EnableEndSessionRequestCaching = true; | ||
|
|
||
| // Note: error pass-through is enabled to allow the actions of the MVC authorization controller | ||
| // to handle the errors returned by the interactive endpoints without relying on the generic | ||
| // status code pages middleware to rewrite the response later in the request processing. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,7 +136,6 @@ public async Task<IActionResult> Authorize() | |
| return View(new AuthorizeViewModel | ||
| { | ||
| ApplicationName = await _applicationManager.GetLocalizedDisplayNameAsync(application), | ||
| RequestId = request.RequestId, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: |
||
| Scope = request.Scope | ||
| }); | ||
| } | ||
|
|
@@ -327,10 +326,7 @@ public async Task<IActionResult> Logout() | |
| } | ||
| } | ||
|
|
||
| return View(new LogoutViewModel | ||
| { | ||
| RequestId = request.RequestId | ||
| }); | ||
| return View(); | ||
| } | ||
|
|
||
| [ActionName(nameof(Logout)), AllowAnonymous, DisableCors] | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -295,11 +295,10 @@ public virtual async ValueTask<long> PruneAsync(DateTimeOffset threshold, Cancel | |
|
|
||
| var authorizations = (await _session.Query<TAuthorization, OpenIdAuthorizationIndex>( | ||
| authorization => authorization.CreationDate < threshold.UtcDateTime && | ||
| (authorization.Status != OpenIddictConstants.Statuses.Valid || | ||
| (authorization.Type == OpenIddictConstants.AuthorizationTypes.AdHoc && | ||
| (authorization.Status != Statuses.Valid || authorization.Type == AuthorizationTypes.AdHoc) && | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: that behavior change is deliberate: openiddict/openiddict-core#2251. |
||
| authorization.AuthorizationId.IsNotIn<OpenIdTokenIndex>( | ||
| token => token.AuthorizationId, | ||
| token => token.Id != 0))), | ||
| token => token.Id != 0), | ||
| collection: OpenIdCollection).Take(100).ListAsync()).ToList(); | ||
|
|
||
| if (authorizations.Count is 0) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: bumping that dependency was required as OpenIddict references the 9.2.0 version of that package.