-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: develop
Are you sure you want to change the base?
feature/IATAB2B-48 #307
Conversation
This reverts commit 0c2ffcf.
@@ -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 |
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.
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) { |
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.
Do we have a ticket for that or can it be fixed in this ticket?
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.
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
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.
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 |
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.
Please create a ticket for it
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 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 |
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.
Please create a ticket for that or fix it in this one
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.
fixed, but have to test the impact of application/statuslist+ld+json. Added TODO on IATAB2B-52
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.
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
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.
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 }) |
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.
We have a function for that that we use elsewhere for dates as well
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.
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) { |
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.
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
No description provided.