c# - How do I log into a web service that was auto-generated by Azure Mobile Web Services? -


microsoft's azure mobile web services lets download .net or javascript service , client talks service. these written in c#, or javascript. chose 1 in c#. there several parts in generated solution

  • a windows 8.1 desktop client (yourname.windows)
  • a windows mobile client (yourname.windowsphone)
  • a azure mobile web service (yournameservice)
  • a shared .net assembly named (yourname.shared)

you can right click on yournameservice , click publish , takes through wizard publishes application directly visual studio azure server. @ point in wizard establishes automatically rather complex credentials (because have logged azure web subscription). can click next, next, , published.

now have webservice, opens in web browser, requires log in. want know is, how know user name , password used login?

 http://yourapp123.azure-mobile.net/help 

then click "try out", , web browser authentication dialog pops up.

why problem? far user have input:

  1. my visual studio login credentials,
  2. my connection azure (perhaps same, perhaps different visual studio login)
  3. during wizard i've determined login credentials publish azure, using values have no idea came from, , left them alone. these seem credentials had opportunity enter, , change defaults renders wizard inoperable, i'm sure that's not enter user , password.
  4. i created username , password when created mobile webservice, , these not work when try log in.

log mystery location

leave user name blank. , put in application key password. can find application key azure portal > mobile service > manage keys.

the reason being ams uses zumo header decide proper authentication. application key used for. it's making sure people or applications has application key can access web service. hope helps.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -