On Wed, Nov 20, 2019 at 23:20 Tushar Jain <[email protected]> wrote:
> Hi Nick, > > Thanks for the response. > We are trying to integrate smart card with the login page. Our users are > provided with a unique 16 digit card number which acts as their identity > and the username. Instead of them typing it out everytime, we want > guacamole to fetch it from the card. We have written a custom js to fetch > the card number(i.e the username) and it is working fine. But are not able > to display the card number in the username textfield. Please suggest how to > go about this. > Based on what you're trying to do - authenticate with smart cards, which is essentially certificate-based, or X509, authentication - I would suggest that you write a custom authentication extension that handles that mechanism, rather than trying to squeeze the method you're using into the existing username and password authentication. While this isn't identical to SSO authentication, looking at those modules may help you understand how they "replace" the standard username and password requirements with something else - in those cases a redirect to another page and processing of a SSO ticket, in your case the validation and parsing of a certificate stored on a smart card. Besides avoiding trying to hack the angularjs pages, it will allow you to make sure that the authentication happens securely by writing the module in such a way that the front end (angularjs) and back end (Java application) are "synchronized" in their conversation for authenticating the user. The manual has information on the extensions, and, honestly, just looking at the existing code will probably be as much help as anything. And, of course, we are happy to help out here, as well 😁. -Nick
