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

Investigate OpenIddict 4.0. #13089

Closed
maliming opened this issue Jun 23, 2022 · 5 comments
Closed

Investigate OpenIddict 4.0. #13089

maliming opened this issue Jun 23, 2022 · 5 comments

Comments

@maliming
Copy link
Member

https://kevinchalet.com/2022/06/22/openiddict-4-0-preview1-is-out/

@maliming maliming self-assigned this Jun 23, 2022
@maliming maliming added this to the 7.0-preview milestone Jun 23, 2022
@kevinchalet
Copy link

FYI, there'll be a breaking change in 4.0: the AddClaim overloads taking a destinations parameter will be removed. A quick search shows that 2 places seem to use these extensions:

In the first case, the destinations can be safely removed because they are always set later anyway in the foreach block (and claim.SetDestinations() will still be present in 4.0):

foreach (var claim in principal.Claims)
{
claim.SetDestinations(GetDestinations(claim));
}

In the second case, I'm not sure why this code exists as OpenIddict always adds a client_id claim to all the access tokens it creates: https://github.com/openiddict/openiddict-core/blob/3.1.1/src/OpenIddict.Server/OpenIddictServerHandlers.cs#L2011-L2013. It's likely this part could be removed too.

@maliming
Copy link
Member Author

Thanks @kevinchalet I will check your comments. 👍

@leonkosak
Copy link
Contributor

@maliming, is "valid issuers" property still relevant in OpenIddict?
IDS4 theme for valid issuers: #5589

@maliming
Copy link
Member Author

maliming commented Jul 8, 2022

hi @leonkosak

I think you can configue the TokenValidationParameters of OpenIddictValidationOptions.

It's same logic.

@maliming maliming modified the milestones: 7.0-preview, 7.1-preview Oct 11, 2022
@hikalkan
Copy link
Member

Moved to #14483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants