Skip to main content

QRCodeOpts

As soon as you include this object the OID4VP agent has to generate a QR code. Every RP implementation needs to support this, as we want to make it easy on the integration side. The integration side can choose whether they create their own QR codes, or whether they want to use the QR code from the RP. Thus every RP conforming to this spec should support generating a QR code in data-uri format. No property is mandatory, so a "qrCodeOpts": {} is already valid and generates a QR with the default properties applied. A RP implementation is free to implement additional properties like logo's etc. This API only mandates a few common properties to not make it too complex for RPs. If the integrating app wants to use their own QR codes they simply need to omit the qr_code param from the request. The agent should not generate a QT code in this case

sizenumber

Size of the QR code in pixels.

Default value: 400
color_darkstring

Color of the blocks on the QR code. Accepts a CSS . For more information about CSS , please refer to https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.

Default value: #000000
color_lightstring

Color of the empty areas on the QR code. Accepts a CSS . For more information about CSS , please refer to https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.

Default value: #ffffff
QRCodeOpts
{
"size": 400,
"color_dark": "#000000",
"color_light": "#ffffff"
}