Hi Aimé,
Unfortunately, the middleware is installed deep into the TLS system, and there is no API that allows you to figure out whether the middleware is available from a browser context.
If you are running a website in the
belgium.be domain, then on Firefox only, there is one API that allows you to see whether the add-on is installed; if it is, you can then post messages to the add-on to request the status of the PKCS#11 module and the
availability of slots with tokens.
In all other cases, your best bet is to try to perform an authentication, and to make sure that your 403 error page guides the user through the most common error situations.
Unfortunately, there isn't a better way that I know of.
Aimé Kassa schreef op di 06-08-2024 om 23:05 [-0700]: