Commit e3556e18 authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Append response to callbackUrl directly instead of a 'smart' way

parent 6b4253a2
......@@ -56,6 +56,7 @@ export class VerifyController {
irmaJwt: string,
) {
try {
// TODO: Abstract this properly (also for jolocom)
const result = this.irmaService.validateIrmaDisclosure(
verifyRequest,
irmaJwt,
......@@ -71,10 +72,7 @@ export class VerifyController {
this.gateway.sendRedirectResponse(
verifyRequest.requestId,
ResponseStatus.success,
new URL(
`?response=${responseToken}`,
verifyRequest.callbackUrl,
).toString(),
`${verifyRequest.callbackUrl}${responseToken}`,
);
} catch {
// TODO: handle bad flow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment