We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc3f395 + 4d98820 commit e9e2254Copy full SHA for e9e2254
src/handlers/waltIdPolicyHandler.ts
@@ -297,6 +297,14 @@ export class WaltIdPolicyHandler extends PolicyHandler {
297
public async download(
298
requestPayload: PolicyRequestPayload
299
): Promise<PolicyRequestResponse> {
300
+ if (typeof requestPayload.policyServer === 'string') {
301
+ try {
302
+ requestPayload.policyServer = JSON.parse(requestPayload.policyServer)
303
+ } catch (error) {
304
+ return buildInvalidRequestMessage('Failed to parse policyServer JSON string')
305
+ }
306
307
+
308
if (!requestPayload.policyServer?.sessionId)
309
return buildInvalidRequestMessage('Request body does not contain sessionId')
310
0 commit comments