Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kevinchalet
Copy link
Member

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.

@kevinchalet kevinchalet added OpenId don't merge dependencies Pull requests that update a dependency file labels Oct 27, 2024
@kevinchalet kevinchalet self-assigned this Oct 27, 2024
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,
Copy link
Member Author

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;
Copy link
Member Author

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 😅

Copy link
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file don't merge OpenId
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants