Citrix Storefront – Adventures in customization – Prepopulate Explicit Logon Credentials

Citrix Storefront – Adventures in customization – Prepopulate Explicit Logon Credentials

2017-10-31
/ /
in Blog
/

Citrix Storefront allows you to prepopulate the credentials for your Explicit Logon.  The explicit logon screen is generally seen here:

And you can prepopulate the Username/Password fields.  If you don’t want to prepopulate the password, that’s fine too.  There are 3 properties and none are required.  Username, Password and Domain.  In order to prepopulate you must pass your credentials through to Storefront somehow, either as a cookie, header or as a URL search query.  I will demo it in the URL search query since I already have that code for pulling the parameters.  You must have “Explicit Authentication” enabled, aka, “User name and Password”:

Put the following code into your custom.js file:

The url to query is:

And the result:

2 Comments

  1. Pierre Altmayer 2018-08-28 1:19 pm

    Hello,

    Can you tell me if it is possible prepopulate the username and to not allow user to modify it in the login form ?

    Thanks a lot

    best regards

    Reply
    • trententtye 2018-09-06 10:40 am

      Hi Pierre,

      I would think you could prepopulate using this technique. Preventing modification might also be possible but I’m not familiar enough with JavaScript or CSS to figure that out off the top of my head.

      Reply

Post a Comment

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.