Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2009

    System authorisation prompt when request made with wrong credentials

    I hope that there's anyone that could help me with it as I'm struggling a bit.
    Is there any way of getting rid of the prompt whenever response with 401-Not Authorized is returned for an ajax request?
    I'm making an ajax call with basic authorization. Everything's fine as long as user gives a correct user-password combination. The problem starts when he/she enters wrong credentials: my xhr.onreadystatechange method is never called, but instead the beautiful system prompt is displayed asking for new credentials. Why is it such a problem? After successful logging in I can't be sure which credentials have been actually used to authorize the user, so I can't store them or even can't use them. Or maybe there's some way of getting the values that were entered into the prompt?
    I'd be extremely greatful for any tips.

  2. #2
    Registered User
    Join Date
    Dec 2009

    Re: System authorisation prompt when request made with wrong credentials

    Have the same problem here

    This should be a bug.

    Can somebody help with this issue?

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2008

    Re: System authorisation prompt when request made with wrong credentials


    Bumping up this old thread as the issue with the dialog has emerged again. Unfortunately this is browser functionality and cannot be controller from WRT. Every time a server returns 401 the user / password dialog is shown.
    You can only avoid the prompt, if you pass the correct user name and password in authorization header at the first place (xmlhttprequest.setRequestHeader("Authorization", auth); )

    There is no way to handle wrong password situation in widget since information about wrong credentials will newer reach the widget. In addition you cannot get values user entered into the dialog either


Similar Threads

  1. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33
  2. How to Prompt the user for IAP selection only if the wrong IAP is currently selected
    By kaiser_20 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-10-26, 15:19
  3. Replies: 1
    Last Post: 2005-04-06, 15:45
  4. System Help with nokia pc connectivity SDK
    By gotka in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2004-07-06, 09:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts