-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Migrate the OpenID module to OpenIddict 6.0 #16929
base: main
Are you sure you want to change the base?
Conversation
public virtual IAsyncEnumerable<TAuthorization> FindAsync( | ||
string subject, string client, CancellationToken cancellationToken) | ||
public virtual async IAsyncEnumerable<TAuthorization> FindAsync( | ||
string subject, string client, string status, string type, |
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.
It's not obvious since we're not using nullable annotations here, but these parameters are now nullable in 6.0 preview3 (which gives a lot more flexibility to filter the authorizations/tokens).
public virtual async ValueTask<long> RevokeAsync( | ||
string subject, string client, string status, string type, CancellationToken cancellationToken) | ||
{ | ||
Expression<Func<OpenIdAuthorizationIndex, bool>> query = index => true; |
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.
Not an absolute fan of creating expression trees "manually", but AFAIK, YesSql still doesn't support IQueryable<T>
, so this is likely the least horrible option 😅
This pull request has merge conflicts. Please resolve those before requesting a review. |
OpenIddict 6.0 is still in preview (see https://github.com/openiddict/openiddict-core/releases/tag/6.0.0-preview1 and https://github.com/openiddict/openiddict-core/releases/tag/6.0.0-preview2) but sending a PR early is always a great way to proactively detect potential regressions that may eventually affect Orchard 😃
Note: 6.0 RTM will ship in December.