Partilhar via


Azure Mobile Services prompts you for a username and password

So you’ve built and deployed your first Azure Mobile Service. Awesome! then you get prompted for a username and password and you can’t use your new mobile service! The good news is that this is by design and being that it is by design, there is an appropriate and easy way to deal with it. The reason for it is security pure and simple and the information needed to get past it is available to you.

To start with, you have a mobile service in Azure that looks like the following:

image

Figure 1: Mobile Service Dashboard

Clicking the highlighted link takes you to this page:

image

Figure 2: Mobile Service entry page

Clicking the Try it out button brings you to the username/password dialog. Looking back at the mobile services dashboard you’ll see the Manage Keys button at the bottom of the screen as shown in Figure 3.

image

Figure 3: Manage Keys

Click the button and then copy either the primary or secondary key. Now, click the Try me button and when the username/password dialog is displayed, paste the key into the password field (leave the username field blank) and click OK. And voila you get to the service as shown in Figure 4.

image

Figure 4: The working mobile service

Comments

  • Anonymous
    February 01, 2015
    Thanks for this! Really helpful. Yet again another thing that MS expects you to find on your own using Google!

  • Anonymous
    March 22, 2015
    wow. I thought I was doing something wrong.  Thank you for this information.

  • Anonymous
    May 04, 2015
    hi thnaks for help just to add one thing for post operation you need to use the master key