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

feature/IATAB2B-48 #307

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from
Open

feature/IATAB2B-48 #307

wants to merge 27 commits into from

Conversation

sanderPostma
Copy link
Contributor

No description provided.

@@ -51,10 +51,14 @@ export function getJwtVerifyCallback({ verifyOpts }: { verifyOpts?: JWTVerifyOpt

const header = jwtDecode<JWTHeader>(args.jwt, { header: true })
const payload = jwtDecode<JWTPayload>(args.jwt, { header: false })
const kid = args.kid ?? header.kid
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a fix from feature/IATAB2B-47 which had to be included in the deployment build

@@ -118,80 +144,91 @@ export function getStatusListCredentialIndexStatusEndpoint(router: Router, conte
}
}
response.statusCode = 200
return response.send({ ...entry, status })
return response.send({ ...entry, status }) // FIXME content type?
} catch (e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a ticket for that or can it be fixed in this ticket?

Copy link
Contributor

Choose a reason for hiding this comment

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

No ticket. Should be in scope of this ticket. The entities already know about the content-type and this is just an if else to set the header

Copy link
Contributor Author

@sanderPostma sanderPostma Feb 18, 2025

Choose a reason for hiding this comment

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

fixed return response.json({ ...entry, status })

@zoemaas please put the review comments in the right column in the future.

const statusListId = updateRequest.statusListId ?? request.query.statusListId?.toString() ?? opts.statusListId
const statusListCorrelationId = updateRequest.statusListCorrelationId ?? request.query.statusListorrelationId?.toString() ?? opts.correlationId
const entryCorrelationId = updateRequest.entryCorrelationId ?? request.query.entryCorrelationId?.toString()
const credentialId = updateRequest.credentialId

// TODO: Move mostly to driver
Copy link
Contributor

@zoemaas zoemaas Feb 4, 2025

Choose a reason for hiding this comment

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

Please create a ticket for it

Copy link
Contributor Author

@sanderPostma sanderPostma Feb 18, 2025

Choose a reason for hiding this comment

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

Not my comment, I do not know what the plan was exactly.

if (proofFormat === 'jwt') {
return `application/statuslist+jwt`
} else {
return 'application/vc+ld+json' // FIXME
Copy link
Contributor

Choose a reason for hiding this comment

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

Please create a ticket for that or fix it in this one

Copy link
Contributor Author

@sanderPostma sanderPostma Feb 18, 2025

Choose a reason for hiding this comment

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

fixed, but have to test the impact of application/statuslist+ld+json. Added TODO on IATAB2B-52

Copy link
Contributor

@zoemaas zoemaas left a comment

Choose a reason for hiding this comment

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

LGTM, but we need to keep track of the TODOs and FIXMEs in the code. Please create a ticket for them or fix them in this ticket

Copy link
Contributor

@nklomp nklomp left a comment

Choose a reason for hiding this comment

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

Some small remarks. Please work on the FIXMEs

@@ -110,6 +110,6 @@ export class StatusList2021Entity extends StatusListEntity {
export class OAuthStatusListEntity extends StatusListEntity {
@Column({ type: 'integer', name: 'bitsPerStatus', nullable: false })
bitsPerStatus!: number
@Column({ type: 'datetime', name: 'expiresAt', nullable: true })
@Column({ type: process.env.DB_TYPE === 'postgres' ? 'timestamp' : 'datetime', name: 'expiresAt', nullable: true })
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a function for that that we use elsewhere for dates as well

Copy link
Contributor Author

@sanderPostma sanderPostma Feb 18, 2025

Choose a reason for hiding this comment

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

Fixed, typeOrmDateTime()

@@ -118,80 +144,91 @@ export function getStatusListCredentialIndexStatusEndpoint(router: Router, conte
}
}
response.statusCode = 200
return response.send({ ...entry, status })
return response.send({ ...entry, status }) // FIXME content type?
} catch (e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No ticket. Should be in scope of this ticket. The entities already know about the content-type and this is just an if else to set the header

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