Question

I'm developing an asp.net application which has Windows Authentication enabled(anonymous access disabled). I've created a sub directory called 'Mobile' containing the pages that need to be accessible from a black berry mobile device. These pages contain read only text and a few buttons for performing some actions(no AJAX, no javascript). Most of the devices are running on version 4.2 or 4.5 of the Blackberry OS/browser

I've also downloaded the Mobile Device Browser File(MDBF) and included it as outlined in that link.

Here are some questions I have:

1) Is there a way to have the BES(BlackBerry Enterprise Server) server authenticate the
user/device(possibly an AD lookup)and pass on the NT credentials of the authenticated user to IIS? i.e perform integrated authentication

2) By using the MDBF does ASP.NET send back HTML formatted for rendering based on the
capabilities of the incoming browser/device, if not in this case is there any value in using MDBF, I don't intend to write device/browser specific code by looking at the device capabilities exposed through Request.Browser.

3) I have a stlesheet that I would like to have applied when these pages are viewed on the black berry.If I view the pages on the desktop, I can see the styles being applied correctly, but the styles are not being applied when viewing these pages on the blackberry.Is there anything in particular that needs to be set in the markup/codebehind /config
to enable support for CSS.

Was it helpful?

Solution 2

I was able to get around items 1 & 2 as indicated in the comments of the original question. For item 3 I decided to leverage the fact that MDS caches the user supplied credentials and uses that to re-authenticate the client on future visits to the same site, the cache expiration policy can be set in the BES to force expiration if desired, also if the user's NT password is changed, the cached credentials are invalidated and the user is presented with a challenge response to re-authenticate once again.

OTHER TIPS

for this to work, you may need to turn off windows authentication for the mobile portion of the site then you would have to create an html form, displayable by the blackberry browser, and authenticate using Active Directory. once authenticated they can browse as normal.

Regarding Item 3 and stylesheets. Review what css is supported by BB version 4.2 Padding and margins are not. I had to use a border with the color the same as the background to space my elements out.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top