Ipad auto-capitalization of username

80 views
Skip to first unread message

McDermott, Michael

unread,
Aug 23, 2011, 11:33:18 AM8/23/11
to us...@shibboleth.net
Hello List,
I haven't seen anything on the user list about this, but our Ipad/Iphone users are complaining that "Shib" capitalizes their case sensitive username when they login and wonder how to "fix" Shib.

Clearly this is a client issue, but the "fix" I've found is to add the html element that directs clients not to auto capitalize.  
In the login.jsp, change the input field from something like:
<input name="j_username" type="text"  />
to
<input name="j_username" type="text" autocapitalize="off"  />

I'm wondering if others are doing the same thing, and if there are any problems with this approach.  If not, then perhaps it could be added in a future release of the IdP.


--
Michael J. McDermott
Lead Developer, Identity and Access Management
Brown University


Peter Schober

unread,
Aug 23, 2011, 1:14:10 PM8/23/11
to us...@shibboleth.net
* McDermott, Michael <michael_...@brown.edu> [2011-08-23 17:33]:

> I haven't seen anything on the user list about this, but our Ipad/Iphone
> users are complaining that "Shib" capitalizes their case sensitive username
> when they login and wonder how to "fix" Shib.

You don't mention what the actual problem is (authentication failing?
JAAS?) but I lookup usernames entered on the web from LDAP (uid),
which is case-preserving (keeps and returns case as stored, which is
consistently lowercase here) but has case-insensitive matching
rules. That way usernames entered on the web are normalized "for
free". Don't know if that helps or not.
-peter
--
To unsubscribe from this list send an email to users-un...@shibboleth.net

Cantor, Scott

unread,
Aug 23, 2011, 1:33:19 PM8/23/11
to us...@shibboleth.net
On 8/23/11 1:14 PM, "Peter Schober" <peter....@univie.ac.at> wrote:

>* McDermott, Michael <michael_...@brown.edu> [2011-08-23 17:33]:
>> I haven't seen anything on the user list about this, but our Ipad/Iphone
>> users are complaining that "Shib" capitalizes their case sensitive
>>username
>> when they login and wonder how to "fix" Shib.
>
>You don't mention what the actual problem is (authentication failing?
>JAAS?)

Kerberos would fail certainly unless you add code to lower case the
principal (assuming you use lower case principals).

I have code like that in mine, but this is a convenient trick to fix the
problem.

-- Scott

Chad La Joie

unread,
Aug 23, 2011, 1:37:24 PM8/23/11
to Shib Users
That would be something I'd be fine adding to the default login JSP
page if you wanted to file a JIRA request for it.

> --
> To unsubscribe from this list send an email to
> users-un...@shibboleth.net
>

--
Chad La Joie
www.itumi.biz
trusted identities, delivered

Bernd Oberknapp

unread,
Aug 23, 2011, 1:56:40 PM8/23/11
to Shib Users
Hello,

since that's a non-standard attribute (causing validation of the page
to fail), I would recommend to not add it to the default login page.

Regards,
Bernd


On Tue, 23 Aug 2011, Chad La Joie wrote:

> That would be something I'd be fine adding to the default login JSP
> page if you wanted to file a JIRA request for it.
>
> On Tue, Aug 23, 2011 at 11:33, McDermott, Michael
> <michael_...@brown.edu> wrote:
>> Hello List,
>> I haven't seen anything on the user list about this, but our Ipad/Iphone

>> users are complaining that "Shib" capitalizes their caseᅵsensitiveᅵusername


>> when they login and wonder how to "fix" Shib.
>> Clearly this is a client issue, but the "fix" I've found is to add the html
>> element that directs clients not to auto capitalize.
>> In the login.jsp, change the input field from something like:

>> <input name="j_username" type="text" ᅵ/>
>> to
>> <input name="j_username" type="text" autocapitalize="off" ᅵ/>


>> I'm wondering if others are doing the same thing, and if there are

>> anyᅵproblemsᅵwith this approach. ᅵIf not, then perhaps it could be added in


>> a future release of the IdP.
>>
>> --
>> Michael J. McDermott
>> Lead Developer, Identity and Access Management
>> Brown University
>>
>>
>>
>> --
>> To unsubscribe from this list send an email to
>> users-un...@shibboleth.net
>>
>
>
>
> --
> Chad La Joie
> www.itumi.biz
> trusted identities, delivered
> --
> To unsubscribe from this list send an email to users-un...@shibboleth.net
>

-- --------------------------------------------------------------------- --
Dipl.-Math. Bernd Oberknapp Universitaetsbibliothek Freiburg
Tel: +49-761 / 203-3852 Rempartstrasse 10-16 | Postfach 1629
Fax: +49-761 / 203-3987 79098 Freiburg | 79016 Freiburg

McDermott, Michael

unread,
Aug 24, 2011, 9:18:52 AM8/24/11
to Shib Users
Chad,
I'd be happy to put in a JIRA ticket, 

Bernd, before I do, other than a validation to fail, what error is it likely to cause?  Have you any experience, anecdotes, or evidence that it impacts screen readers for the visually impaired or something analogous?

A known issue with usability outweighs correctness for its own sake in my estimation, but I know little about what additional issues may arise and a brief wrangle with Google did not yield any issues.

Mike


On Tue, Aug 23, 2011 at 1:56 PM, Bernd Oberknapp <b...@ub.uni-freiburg.de> wrote:
Hello,

since that's a non-standard attribute (causing validation of the page
to fail), I would recommend to not add it to the default login page.

Regards,
Bernd



On Tue, 23 Aug 2011, Chad La Joie wrote:

That would be something I'd be fine adding to the default login JSP
page if you wanted to file a JIRA request for it.

On Tue, Aug 23, 2011 at 11:33, McDermott, Michael
<michael_...@brown.edu> wrote:
Hello List,
I haven't seen anything on the user list about this, but our Ipad/Iphone
users are complaining that "Shib" capitalizes their case sensitive username

when they login and wonder how to "fix" Shib.
Clearly this is a client issue, but the "fix" I've found is to add the html
element that directs clients not to auto capitalize.
In the login.jsp, change the input field from something like:
<input name="j_username" type="text"  />
to
<input name="j_username" type="text" autocapitalize="off"  />

I'm wondering if others are doing the same thing, and if there are
any problems with this approach.  If not, then perhaps it could be added in

a future release of the IdP.

--
Michael J. McDermott
Lead Developer, Identity and Access Management
Brown University



--
To unsubscribe from this list send an email to



--
Chad La Joie
www.itumi.biz
trusted identities, delivered
--
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net


-- --------------------------------------------------------------------- --
Dipl.-Math. Bernd Oberknapp          Universitaetsbibliothek Freiburg
Tel: +49-761 / 203-3852              Rempartstrasse 10-16  | Postfach 1629
Fax: +49-761 / 203-3987              79098 Freiburg        | 79016 Freiburg
--
To unsubscribe from this list send an email to users-un...@shibboleth.net

Peter Schober

unread,
Aug 24, 2011, 9:32:53 AM8/24/11
to us...@shibboleth.net
* McDermott, Michael <michael_...@brown.edu> [2011-08-24 15:19]:

> A known issue with usability outweighs correctness for its own sake
> in my estimation

I fully agree with Bernd that the project should not be changing
defaults to include non-standard/non-validating HTML esp. when it's
trivial to add this to your own login.jsp during branding/customization.
-peter

Chad La Joie

unread,
Aug 24, 2011, 9:48:38 AM8/24/11
to Shib Users
The *example* login page doesn't claim conformance to any of the dozens of HTML/XHTML versions out there, so it's not technically possible for any of it's pages to be schema/DTD invalid. I don't even know which schema/DTD I'd pick if I had to.

Conversely, to your point Peter, if you care about validation against a particular HTML/XHTML schema/DTDs it's trivial to remove that attribute when creating your real login page from the shipped example.

--
Chad La Joie
www.itumi.biz
trusted identities, delivered

Rainer Hoerbe

unread,
Aug 24, 2011, 9:51:12 AM8/24/11
to Shib Users
A proper way to force the text lowercase on the client would be to have some javascript - fairly trivial.

- Rainer

Martin B. Smith

unread,
Aug 24, 2011, 9:52:58 AM8/24/11
to us...@shibboleth.net
On 08/24/2011 09:18 AM, McDermott, Michael wrote:
> A known issue with usability outweighs correctness for its own sake in
> my estimation, but I know little about what additional issues may arise
> and a brief wrangle with Google did not yield any issues.

FWIW, we made this change to our login page over a year ago, and haven't
heard any negative side effects; mostly, people were thrilled they no
longer had issues with iPads and Androids.

A little after that, we also added:
<meta name="viewport" content="width=device-width" />

This helped our customized login page. I'm not sure if it will improve
the usability of the default/sample login page, though, as it is much
wider than our login page is.

Hope this helps,
--
Martin B. Smith
smi...@ufl.edu - (352) 273-1374
CNS/Open Systems Group
University of Florida

Chad La Joie

unread,
Aug 24, 2011, 9:57:26 AM8/24/11
to Shib Users
There is "proper" way to do any of this stuff. There is only the way that works best for you in your environment.

--
Chad La Joie
www.itumi.biz
trusted identities, delivered

Tom Scavo

unread,
Aug 24, 2011, 11:59:05 AM8/24/11
to Shib Users
On Tue, Aug 23, 2011 at 1:56 PM, Bernd Oberknapp <b...@ub.uni-freiburg.de> wrote:
>
> since that's a non-standard attribute (causing validation of the page
> to fail), I would recommend to not add it to the default login page.

+1

McDermott, Michael

unread,
Sep 6, 2011, 11:32:32 AM9/6/11
to Shib Users
Not seeing any objections other than it might upset validations, I'll post it to Jira and the core team can debate.  
Reply all
Reply to author
Forward
0 new messages