Sometimes explaining things in the simplest possible terms helps :) But I agree there's a lot more there we didn't cover. Thanks!
guillaumeo, can you elaborate on what the scenario is? Do you want to hardcode a username/password in your service or have some UI that authenticates the user to call this service?
For hardcoded username/passwords you can use ADAL's headless authentication (http://www.cloudidentity.com/blog/2014/07/08/using-adal-net-to-authenticate-users-via-usernamepassword/).
But if you have a web UI that authenticates the user and then calls this service I'd suggest making it into a REST/Web API simply because it will make your life so much easier. I might be able to provide more help once I learn more about what you are trying to build there.
Craig, drop me an e-mail on firstname.lastname@example.org and lets discuss this further. First thing I need to understand is what kind of app is this. You mentioned this is not an MVC app. I assume it's still ASP.Net so is this a Web Forms app? Visual Studio can add all authentication out of the box for you so the only code you will need to add is the calls to O365 which should be just a few lines of code still.
Craig, I just spoke with the team:
The newest tools for Visual Studio don't generate that sample snippet anymore. They felt it would be wiser to instead create a nice sample app and point people to it: https://github.com/OfficeDev/Office-365-APIs-Starter-Project-for-ASPNETMVC">https://github.com/OfficeDev/Office-365-APIs-Starter-Project-for-ASPNETMVC There are several samples over that site: https://github.com/OfficeDev/
There's not really a sample because everything there is generated out of Visual Studio. Once you install the O365 API tool for Visual Studio, everything should work. Let me know if that doesn't do the trick for some reason.
1-This is really up to the application. But yes, you could go that far. There's a great book that discusses exactly that scenario in details named "Building Hypermedia APIs with HTML5 and Node". I'd suggest taking a look at that.
2-ASP.Net Web API allows for that and it is not uncommon. In many cases you don't want to expose directly your database objects. You can use libraries such as AutoMapper to do that, more or less like discussed here: http://stackoverflow.com/questions/14484692/web-api-queryable-how-to-apply-automapper
Feel free to ping me on @matvelloso
Jul 14, 2014 at 1:26 PM
Rob, the how to for getting authentication to work on iOS and Android are here:
I'll get a post with the remaining sample code done to cover the remaining missing bits but I know the folks on Azure are also building a sample. Either way I'll let you know.
Jun 11, 2014 at 12:52 PM
@demel unfortunately I don't have access to these. Are you looking for anything in particular from those images?