Skip to content

DPoP Validation#48

Open
jennyhougen wants to merge 8 commits intomainfrom
DPoPValidation2
Open

DPoP Validation#48
jennyhougen wants to merge 8 commits intomainfrom
DPoPValidation2

Conversation

@jennyhougen
Copy link
Collaborator

  • Project for validating Jwt DPoP tokens

@jennyhougen jennyhougen marked this pull request as ready for review March 8, 2026 19:34
{
internal interface IDPoPProofValidators
{
Task<DpopValidationResult> ExecuteAsync(DPoPValidationContext context, JsonWebToken? proofToken, CancellationToken cancellationToken = default);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De som bruker proofToken sier at verdien ikke er null (!proofToken). Endre kontrakten til å være JsonWebToken proofToken

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skjønte ikke kommentaren?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fra hva jeg kan se så er aldri proofToken null.
Når den blir implementert så sier man proofToken!. Så kanskje endre kontrakten?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah.. så ikke !. Den er fyfy i prod kode. Jeg skal endre kontrakten og gjøre null sjekken på utsiden. token kan være null. Godt vi har codereview :)

@jennyhougen jennyhougen requested a review from Kattemat March 9, 2026 15:01
Copy link
Contributor

@Kattemat Kattemat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ser greit ut det jeg forstod så langt !


internal static partial class DPoPConstants
{
internal static class ItemPorpertyName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: ItemPorpertyName → ItemPropertyName

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

Successfully merging this pull request may close these issues.

3 participants