<?php
use SimpleSAML\Module\webauthn\WebAuthn\WebAuthnRegistrationEvent;

$config = [
    'debug' => false,

    'store' => [
        'webauthn:Database',
        'database.dsn' => 'pgsql:host=localhost;port=5432;dbname=dbname',
        'database.username' => 'dbuser',
        'database.password' => 'Gs6eshxP92GF115B',
    ],

    'identifyingAttribute' => 'uid',
    'attrib_displayname' => 'urn:oid:2.5.4.3',

    'scope' => 'passkey.grnet.gr',

    'registration' => [
        'policy_2fa' => [
            'minimum_certification_level' => WebAuthnRegistrationEvent::CERTIFICATION_NOT_REQUIRED,
            'aaguid_whitelist' => [ ],
            'attestation_format_whitelist' => [],
        ],
        'policy_passwordless' => [
            'minimum_certification_level' => WebAuthnRegistrationEvent::CERTIFICATION_NOT_REQUIRED,
            'aaguid_whitelist' => [ ],
            'attestation_format_whitelist' => [],
        ],

        'use_inflow_registration' => false,

        'auth_source' => 'example-userpass',
    ],
];
