By: ellen huang user 22 Mar 2019 at 4:02 a.m. CDT

1 Response
ellen huang gravatar
I need the logo of our branding page to change based on a passed in parameter, saying CID. We need to retrieve branding image URL by calling a web service of ours with CID. And then render this image on the login page. Currently the logo on the login sample page is just a static image link. How do I make that link dynamic based on the response of API call? Thanks!

By Aliaksandr Samuseu staff 25 Mar 2019 at 8:32 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Ellen. This should be possible by employing [custom authentication script](https://gluu.org/docs/ce/3.1.5/admin-guide/custom-script/#person-authentication). I.e. you could either make the script to display another page, depending on some parameter in initial request (could even be a custom parameter), or you could even select which logo to display by on-page scripts (like, javascript), by passing some argument from authentication script to those on-page scripts, containing the logo's id. You can find custom scripts' examples [here](https://github.com/GluuFederation/oxAuth/tree/master/Server/integrations). We can't help you with actual development of one within the scope of Community Support, though (only is covered by some of paid support plans).