-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtering Certificates based on certificate ID (fortify-webcomponents) #10
Comments
What do you mean by certificateid? |
When the web-component lists the certificates in the UI and a selection is made by the user to use one of them for signing, the web-component returns something like below, which includes I could probably be wrong, but I am hoping that this Next time, when signing is required, we could ask the web-ui to filter and show only these earlier "associated" certificates (because the app only knows them as the ones that belong to that user) and let the user select one of them and use them for signing. I am referring to Not sure if this is the right way, but I hope you understand what I am trying to achieve. I do not want to show the full list (the user might have added few more certificates, but the app may not know them, and hence does not allow signing with them unless they are registered with the app first). If this is not how it should be done (as a standard practice) and there is some other way this is usually handled, please do let me know. I am trying to ensure that the user signs with a certificate that the user previously acknowledged as belonging to him. This is the example web-component UI I am talking about: https://codepen.io/donskov/pen/OJMPPNX |
About Fortify KeyStorage and CertificateStorage identifiers. It's a composed key
|
@KrishnaPG We added Use new version:
|
Thank you @donskov That is very fast. Wondering, how do we specify an array of
|
One thing that could help is: to accept a function and let the user do the filtering and sorting inside that function, returning you the filtered and sorted list. That way the web-component can allow much more customisation for how the list is displayed in the UI. For example, I would like to display the frequently used certificates on the top in the list. This would require tracking the usage statistics of the certificates, which may be out of scope of the web-components themselves. Hence accepting a user callback function as one of the props /parameters of the web-component can allow the user to do the required customisation based on the external app-specific requirement. The callback function accepts a list of certificate data (supplied by the web-component) and returns a promise. That promise when resolved gives the filtered and sorted certificates list that the web-component can display in its UI. Of course, if the callback is not specified, then the web-component can fallback to its existing filter based implementation as the default behaviour. |
@KrishnaPG would be great to hear about what you are using Fortify with. |
Thank you @rmhrisk I am trying replace the password based authentication with Certificates. Something like a single-sign-on but with certificates. For example:
This may look long and convoluted process just for login, but I am trying to make this compatible with These |
Interesting. Something I have wanted to do is to create an authentication web component that wraps the select web component. The idea is that there would be an API similar to FIDO where there is a register call that would fetch a challenge from a server that is signed by the client, and an authentication call that works the same way. With something like this you could easily create your envisioned flow I do not have a roadmap for that at this time but it will eventually happen. |
You can use
Also, we think about adding a function for allowing the use of custom filters. Thanks! |
Could not find any repo for the
@peculiar/fortify-webcomponents-react
hence posting it here. Not sure if this is the right place.The
peculiar-fortify-certificates
web-component allows certificates to be filtered based on some matching conditions of DN name etc. We can use that web-components UI to let the user select a certificate for signing.However, if we need to restrict the certificate list to be a specific known set of certificates based on
certificateID
it is not possible. This is required in cases where we need to let the user select a certificate from only a list of certificates that are previously registered/associated with the app earlier. For example, to ensure non-repudiation. We want to ensure that the user:The
peculiar-fortify-certificates
achieves the first scenario of listing all certificates (and also filter some that match a name), but does not allow filtering based oncertificate IDs
that makes the second scenario possible, where we list only the set of certificates that are known to us by ID.The text was updated successfully, but these errors were encountered: