Authentication using Mobile Service

I added mobile service to my mvc web project using nuget(1.3.1).I also registered mobile service in azure portal and linked with facebook.Now my problem is that when i tried loginasync method ,it asking for token and provider name and i could not get the
extension method(Microsoft.WindowsAzure.Mobile.Ext ) where it asks for only provider name? Is this an issue with nuget? Also I would like to know from where we get the token?

Take a look at the sample on
how to add authentication to mobile services app.
Abdulwahab Suleiman

Similar Messages

  • How to Use Mobile Service in HTML/JavaScript Application

    The Windows Azure Mobile Service is a back end tool for mobile applications. It supports various platforms, such as Windows Store, Windows Phone 8, iOS and Android. The Windows Azure
    Mobile service can also support HTML/JavaScript. This article helps you to get a basic idea of how to use the Windows Azure Mobile Service in HTML/JavaScript applications.
    Let us start with a Quick startup project provided by Microsoft. A Quick startup is a simple demo project that can help us to understand how to use the Windows Azure Mobile Service with HTML/JavaScript. So let's start from the Quick startup project.
    Login into in the Windows Azure portal and use the following procedure.
    This article assumes you already have a Windows Azure account and the mobile service is enabled in your account.
    1. Create a new Windows Azure Mobile Service
    Click on the +New button from the left corner and select Compute -> Mobile Service and then click on the "Create" button.
    The Windows Azure portal popup creates a mobile service wizard when you click the Create button. Windows Azure asks you to enter the mobile service name as shown in the following image:
    Select the database options and region for your mobile service and click on the "Next" button.
    Once your mobile service is successfully created, the portal will show all your mobile services as shown in the following images.
    Ok! We have created a new mobile service successfully. Let's move to our subsequent steps.
    1. Quick startup Project 
    As we all know, the Windows Azure Mobile Service can support many platforms such as Windows Store, Windows Phone 8, iOS, Android and HTML/JavaScript. This article only tells us about the new HTML/JavaScript platform that is recently added to the Windows Azure
    Mobile Service.
    In the image above, we are in the quick startup page where the Windows Azure Mobile Service allows the user to choose their platform. I have selected the HTML/JavaScript Platform.
    In the image above, we found 3 quick steps that can allow us to run <g class="gr_ gr_74 gr-alert gr_gramm Grammar" data-gr-id="74" id="74">a HTML/JavaScript</g> sample project. 
    1. Create Table: In this step the user needs to create a table that can used by the sample project, once you hit the create TodoItem Table button. The Portal will create a TodoItem table in your mobile service. You
    can check this table by clicking on the data tab(menu).
    2. Download and run your app: In this step the user needs to download the Quick startup project that is provided by the Windows Azure portal. Click on the "Download" button and download the project. You will
    see the following files in the quick startup project.
    The Server folder contains some files to setup this project locally. The user should run the file from the server folder corresponding to their OS. I am using Windows OS so I ran the <g class="gr_ gr_80 gr-alert gr_spell ContextualSpelling ins-del multiReplace"
    data-gr-id="80" id="80">lanch</g>-<g class="gr_ gr_79 gr-alert gr_spell ContextualSpelling ins-del multiReplace" data-gr-id="79" id="79">windwos</g> file to setup this project locally in
    IISExpress.
    Press r and enter the key, you will see IISExpress started. Do not close this Windows and open your browser and request the http://localhost:8000/ page.
    Enter the Item name and click on the add button. Your Item will be added to the TodoItem table.
    3. Configure your host name: This step is a very important step for any HTML/JavaScript application that uses the Windows Azure Mobile Service. In this <g class="gr_ gr_83 gr-alert gr_gramm Punctuation only-ins
    replaceWithoutSep" data-gr-id="83" id="83">step</g> the user must register their website name in the Cross-origin resource sharing (CORS). By default, "localhost" is added by the Windows Azure Mobile Service
    so your quick startup project can run without making any CORS setting changes. The user can add their website domain name by clicking on the configure tab (menu).
    The user can add as many website domain names as needed.

    are you asking a question or did you just post a tutorial here? you might want to post it as a blog post or wiki entry instead.

  • How to delete a file in blod storage using mobile service

    This
    link shows how to add a file using windows phone 8 mobile service. I would like to know how I can delete the file once it is stored in the blob storage. I have typed following codes by using existing resource name and image url after the file has been successfully
    uploaded and although I do not receive any errors, the file does not get deleted in the storage either:
    CloudBlockBlob blobFromSASCredential =container.GetBlockBlobReference(todoItem.ResourceName);
                    await blobFromSASCredential.DeleteAsync();
    Can anyone help? I am using 3.0.2.0 Thank you.

    Hi,
    If use above code to delete other blob file, does it success? see more:
    how to delete azure blob storage , please consider this factor, Storage Emulator 2.2 is currently incompatible with Storage Client Library 3.0.0.0. This has been mentioned in Storage Team Blob as well:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11/27/windows-azure-storage-release-introducing-cors-json-minute-metrics-and-more.aspx (Please read "Storage Emulator Guidance" section towards the end of the post). and there is a
    beta version of the next storage emulator available that does work with v3 of the storage API dlls: http://blogs.msdn.com/b/windowsazurestorage/archive/2014/01/27/windows-azure-storage-emulator-2-2-1-preview-release-with-support-for-2013-08-15-version.aspx .
    If I misunderstand, please feel free to let me know.
    Hope this helps
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot use mobile service on ally

    I activated a new LG Ally yesterday and the data seems to be working okay, but any time I try to make a call or send a text it says the mobile service is not available.
    I got the confirmation that the phone was activated yesterday and I can't use my old phone anymore for texting or calling, so I'm not sure what the problem is?

    Does the phone connect to Verizon Wireless when you dial *228, option 1 to reprogram the phone to the VZW network?

  • Cannot change GroupWise User Name in GW Mobility Service 2.0

    Hi,
    In GW Mobility Service 2.0 I can no longer change the "GroupWise User Name" value, which I need for the the address book selection. I need to change it, because we use AD authentication. This sets the username value to CNAME, which is different from our logon names (sAMAccountName). I can only change the "Mobility User Name""now. In 1.2.5.299, I was able to change it.
    As a result, I'm unable to add new users to the system. Anyone know how to fix this?
    Iwan

    Originally Posted by dzanre
    iwan wrote:
    > I don't add users via the web interface. I add them to an AD user group, at
    > which point they are automatically added to the system. Once they are added, I
    > change the name and sync them. I've added over 100 users like this in the
    > previous version. I don't know why it does not work anymore. It does allow me
    > to change the "Mobility User Name".
    This has actually long been an issue, and I had failures even with 1.2.5. I
    think you got lucky. This is a known problem with using LDAP groups for adding
    users.
    Also, you say that you were using AD groups, and this is definitely not
    supported. eDirectory is the only supported LDAP server for Mobility and that
    has always been the case.
    So, I'm afraid that if this was working before, it was totally by accident.
    Danita
    Novell Knowledge Partner
    GroupWise Mobility Service 2.0 Guide - Caledonia Guide to the GroupWise Mobility Service 2.0
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...
    Hi,
    I'm sorry to hear that. I've been using it with AD as an LDAP source for quite some time without any issues. I still use it for authentication to the web interface itself. It would still work if I could just modify the "GroupWise User Name", like I could in the previous version. It doesn't seem logical to allow changing the "Mobility User Name" and not the "GroupWise User Name".
    I am adding users through the web interface now and abandoned adding them via the LDAP group option (still use AD auth on the devices). I don't want to use eDir as I'm trying to move away from it. Every system within our company authenticates using AD. I only have eDir for GroupWise and with the next version of GW coming up and fully supporting AD, I can finally go to a single Directory.
    When I migrate to GW 2014, will I be able to select GroupWise for authentication in Mobility Service and have the POA use AD authentication? Effectively giving Mobility Service AD authentication through GW? If so, the only thing that would not work is adding users via a group (if eDir is not used anymore).
    Iwan

  • Latency in Mobile Services REST on Load/Possible Timeout

    Hi all,
    I am using Mobile Services to host data accessible via REST. I have noticed that if I don't visit the REST endpoint (Or the site exposing the data) that it takes 7-10 seconds to load. After which, I don't have this load time... as long as I keep hitting
    the service. Is there a timeout on the Web Service? Is there a way to keep it always on, as this is killing the user experience?
    I am using the Free Mobile Tier.
    Thanks,
    Kelly
    Personal Blog: http://thebitsthatbyte.com

    Hi Kelly,
    The Free tier is for development testing only.  You need to move up to basic.  The Free tier is hosted on a machine with other free services and when not used is spun down to conserver resources.
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • Azure AAD Mobile Service Authentication with corporate accounts fails.

    I have been having on-going issue with Authenticating against a Windows Azure mobile service with corporate accounts.
    Here is the complete environment.
    Initially we set up with Office 365 / CRM Online / and Azure for our corporate infrastructure. We have set up single sign on. Everything works well. There is ADFS set up and running to allow us to Authenticate with {username}@{companyDomainName} and everything
    works, including single signon. 
    Along comes Azure Active directory. We have an Automatically created Azure active directory in the corporate azure account. The domain is the default created {accountname}.onmicrosoft.com domain structure. This is set as the Default directory.
    We had a consultant come in, who was organized through Microsoft, to do some work. After everything was set and done we ended up with another active directory created in Azure that is named with the corporate domain name. This second domain has had all of
    the corporate accounts synched to it. 
    I have now created an Azure Mobile Service. The service is a basic service, I haven't updated any of the code yet, except to publish the service. I have followed all of the configuration instructions for setting up the authentication. 
    If configure the Authentication to point at the first active directory, I am able to Authenticate against the service using the credentials for a user that has been created in that domain. The Authentication works correctly, and goes through.
    However if I switch the configuration to use the second Active Directory, the one with the corporate accounts synched to it, the authentication fails. I am able to enter my corporate email address into the web page that is presented. Then the web control
    started to call into the ADFS in order to authenticate the corporate user name and password. At this point the authentication fails with a message about the service not being available.
    The login code is the standard:
    user = await App.MobileService.LoginAsync(MobileServiceAuthenticationProvider.WindowsAzureActiveDirectory);
    The project is a Universal Application as the service needs to be available from both a phone and a desktop. The project was started from the starter project downloaded form the Mobile Service site.
    # Update
    I've just switched the mobile service configuration back to use the AAD with the corporate accounts synchronized. The login through the application fails. However if I log in through IE by browsing to : https://{ServiceName}.azure-mobile.net/login/aad
    The authentication goes through correctly. 

    A few questions on the details:
    What client platform are you using for login. In particular, is this a Windows Store application?
    What do you mean exactly by "authentication fails?" Does an error get thrown, or does the UI just hang?
    Is this being done from a domain-joined machine and/or on a machine connected to a corporate network?
    We have seen an issue where some configurations of ADFS will not play nicely with Windows Store apps since the Web Authentication Broker (WAB) is based on the IE browser, and ADFS will attempt to do SSO in the special IE way instead of presenting a form,
    etc. Unless the WAB is configured to handle this scenario, you will get a non-responsive UI.
    Any details you can provide would be helpful.

  • Azure Mobile Services and ASP Identity - Exception when using UserManager

    I've reviewed
    this post in the AMS forum and it doesn't really answer the question. I already know how to integrate authentication, but Identity implements a lot of boilerplate user management code that I don't want to have to reproduce.  My question is: Is it possible
    to use Asp Identity framework with Azure Mobile Services? Since AMS Back End has Microsoft ASP.NET Identity Core/Owin as dependencies, I would think that the answer is yes, that they are compatible?
    I have been progressing as if it were possible, but yet, now when I go to try to use the Identity UserManager, I am getting the exception stated in
    this asp.net identity bug. Are there references in Azure Mobile Services Back End to previous versions of Microsoft.AspNet.Identity that would result in mismatched assembly versions?
    I have tried uninstalling and reinstalling Asp.Net Identity, even to the pre-release of 2.2.0, but I am still getting the exception that it couldn't load the CultureAwaiter. I have asked in that post if the bug has been fixed, but from the scant evidence of
    the posts and lack of responses, I would think that the bug has been fixed.
    ibGib

    The bug referenced in the original post shows that the required version is 2.1. I found that when I published to Azure, even though I had the correct (2.1) versions of the NuGet packages installed, the loaded dlls were not the correct versions. I do not
    know if this is an Azure problem or an Azure Mobile Services problem.
    I came to this conclusion by looking at the loaded Identity dlls in a new, up-to-date mvc app, and then looking at the same loaded dlls while debugging in Azure. The Azure dlls are older versions than the up-to-date MVC app versions. I figure that somewhere
    along the lines, Azure Mobile Services is loading the incorrect version of the Identity dlls, even though I have the correct versions installed via NuGet. Maybe there is another explanation.
    But regardless, I should be able to use the up-to-date versions of Identity in order to address bugs in the Identity framework. It would be nice if an AMS person would clarify about the dll versioning. I did come across
    this SO comment by someone who seems to be an AMS guru, but it doesn't seem to make sense. It does, however, seem to corroborate my and BinLaw's observed behavior of the backend dlls.
    ibGib

  • Accessing the Mobile Service without Authentication

    I am planning on using Azure Mobile Services as a backend to our social application. However, security will be handled by a different authentication server that we are implementing.
    User authentication is handled on the client level through the our server, I want to keep the permissions on the table as "Anyone with Application Key", does this cause any risk to my data being accessed from outside?
    Best Regards Omar Sultan

    Hi,
    Thank you for reaching out to us.I am currently researching to gather more information with regards to your request. I shall revert back to you with an update at the earliest.Sincerely appreciate your patience.
    Regards,
    Girish Prajwal

  • Is anyone successfully using Mobile Field service - laptop version  in 12.2.X ?

    We need this type of functionality but we  are on 12.0.6.  We are considering upgrading but we were going to upgrade later this year.  However, we need this type of functionality as soon as possible.  Is anyone using Mobile  Field Service in 12.2.X with laptops?

    Hardik,
    I am using an O2 XDA II with Pocket PC 4.2. I am using IAS 9.0.4.0.0.
    I have defined a service in my midtier which outputs XML with a signature box:
    <SimpleFormItem name="p_signature" type="signature"> etc
    My PDA displays the signature box correctly in the web browser.
    When I sign the box and press Submit the following data items are returned to the midtier:
    Query String: "sigSubmit=mySubmit&sig_width=200&sig_height=100&sig=&personName=tim"
    Notice that the sig data is null.
    I know that my IAS version is a little low, but, the problem appears to be that the plug-in in the browser is not returning any sig data.
    Do I have an old version of the plug-in?
    Have you used this plug-in?
    Has it worked for you?
    Do you know where I can get a newer version of this plug-in as it must work with Oracle Apps?
    Regards,
    Tim.

  • Web Service Authentication using Microsoft Active Directory

    Hi
    Is there a way to create Oracle Java Web Services that requires authentication using Active Directory?
    Regards,
    Néstor Boscán

    If you use the SOA Suite the Oracle Web Service Manager is included in there. Using this you can add steps that will authenticate against an AD.
    cu
    Andreas

  • How do I send a raw (push) notification from the server side using an Azure mobile service?

    Hi there!
    Currently I'm able to send toast notifications to my user from my Azure mobile service using the following line of code in one of my server side scripts:
    push.wns.send(opponent_id, payload, 'wns/toast', {
    success: function(pushResponse) {
    console.log("Sent push:", pushResponse);
    request.respond(statusCodes.OK, {});
    error: function(pushResponse) {
    console.log("Error Sending push:", pushResponse);
    request.respond(500, { error: pushResponse });
    But I would like to send a raw notification to my user now, not a toast notification. I've set up a background tasks which runs as soon as a raw notification arrives(I've tested this through the diagnose option of my mobileservicehub and it works).
    I want to send a raw notification now from the server side and I'm kind off lost on how to do that. I've looked for it but can't seem to find an answer to that question, I might be looking for the wrong stuff though.
    I'm looking for a solution that looks the same as the one for a toast notification(as demonstrated in the code above).
    Your help would be greatly appreciated!
    Thanks in advance!
    Jan

    I found the solution to this it was in fact really really easy, I should have read the documentation more properly since it clearly said that the payload for raw notifications could be literally anything but the client has to take care of it.
    So I figured that out!

  • Shared Services External Authentication using LDAP in 9.3.1

    Hi,
    I have installed Hyperion Shared Services with native directory. And now planning to setup external authentication using LDAP. I need some guidance to understanding how the external authentication works.
    Questions:
    1. Is it possible to setup Shared Services to use both Native and LDAP user directory? What I mean is some users will be able to login using Native directory, and some others will need to login using User Directory (external authentication).
    2. For User Directory (say we use LDAP), when the user is added into Shared Services, can they be assigned with Groups created in Native directory? We want to explore to use just the external authentication and define all of the groups within shared services.
    If not possible, can we manage the Groups of the User directory using shared services? How is the groups work with external authentication?
    Any feedback would be much appreciated.
    Thanks,
    Lian

    Hi,
    Yes you can use both Native and external authentication. When you add the external provider the native is left by defaut anyway.
    Yes you can add your external users to native groups. You can also provision the groups in the AD if you wish.
    Gee

  • I get a message stating that this iphone cannot be used because Apple Mobile Service is not started

    I get a message stating that this iphone cannot be used because Apple Mobile Service is not started

    Windows XP
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Choose Start > Control Panel.
    Inside the Control Panel, open Administrative Tools.
    Open Services.
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.
    Windows Vista or Windows 7
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Click the Windows Start button .
    In the Start Search field type Services.
    In the Programs section of the search results, Click "Services".
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.

  • Adding Authentication to Web Service using JDeveloper

    Hi Gurus,
    I am new to weblogic 10.3 and Jdeveloper 11.1.3. Using Jdeveloper, I imported few packages from database , right clicked and published them as a webservice on a weblogic server. I did not select any WLS policies. The web service is working fine. Now i want to add some basic authorization (username/password) to this webservice.
    Which policy should i use ?
    Where should i configure this username\password so that all the webservices uses same user for authenctication ? Do i have to create this user on the weblogic server? If yes then how.
    Thanks in Advance.
    Jack

    Hi,
    If you are using JAXWS based WebService then you can give it a try:
    http://weblogic-wonders.com/weblogic/2010/01/09/username-token-in-jaxws-webservice/
    This sample demonstrates ..How we can use UserName/Password Authentication in JAXWS Service. This will be very Easy for you to develop using JDeveloper...U need to Just the add Following XML file as a Policy inside your Application.
    Using the following Policy:
    <font color=maroon>
    <?xml version=”1.0″?>
    <wsp:Policy
    xmlns:wsp=”http://schemas.xmlsoap.org/ws/2004/09/policy”
    xmlns:sp=”http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512″>
    <sp:SupportingTokens>
    <wsp:Policy>
    <sp:UsernameToken
    sp:IncludeToken=”http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToRecipient”>
    <wsp:Policy>
    <sp:WssUsernameToken10/>
    </wsp:Policy>
    </sp:UsernameToken>
    </wsp:Policy>
    </sp:SupportingTokens>
    </wsp:Policy>
    </font>
    Thanks
    Jay SenSharma

Maybe you are looking for