Print

Print


On 25 Nov 2014, at 08:31, Andy Swiffin <[log in to unmask]> wrote:
> 
> Hi
>  
> Increasingly people are logging into resources through mobile devices through the IdP.   Does anyone know if there is any kind of environment variable available to login.jsp which indicates the kind of browser that a user is coming from?    We already customise the login page dependent on certain service providers that the user is logging in to but these are well documented logincontext input variables and only pertain to the SP. (https://wiki.shibboleth.net/confluence/display/SHIB2/IdPAuthUserPassLoginPage)
>  

Hey Andy,

That’ll be done via CSS rather than jsp code. Libraries like Bootstrap [1] (other libraries are available!) let you do this kind of things quite nicely. Cardiff’s login page uses bootstrap for a responsive design so that the page looks different depending on the browser window size (and therefore by device). Hit the cardiff shib login page and resize the browser window to see it in action… Make the window small enough and you’ll see what it looks like on a mobile browser.

There are quite a lot of libraries that do this, and some are somewhat simpler than bootstrap (which is quite comprehensive). Google around and find one that suits your needs :-).

Rhys.


[1] http://getbootstrap.com/
--
Dr Rhys Smith
Identity, Access, and Middleware Specialist
Cardiff University & Janet, the UK's research and education network

email: [log in to unmask] / [log in to unmask]
GPG: 0x4638C985