Working with windows Azure active directory - c#

Can any one suggest me a place to get started to work with Windows Azure directory and GraphClient.May be a blog or video.
I googled and I could not find any valuable resources.I referred to this from Channel9. But the speaker has not shared the code which he used.
I wanted to authorize a MVC Controller with the help of Azure active directory.
Any help would be appreaciated.
Update :
The following blog my Geoff is really helpful.
http://geoffwebbercross.blogspot.co.uk/2014/05/adding-azure-ad-single-sign-on-to.html

IMHO the best resources to start are:
Overview of the scenarios you can tackle: http://msdn.microsoft.com/en-us/library/azure/dn499820.aspx
Repos with all of our latest samples: https://github.com/AzureADSamples/
HTH!
V.

Related

Fast Binding to Active Directory

Passthrough authentication in my web server application written in C# is performing extremely poorly; successful login events take as long as 10 or 15 seconds using the System.DirectoryServices.AccountManagmeent API.
I would like to switch to using System.DirectoryServices.Protocols and fast binding as described in this MSDN article Using Fast Bind, but it is bereft of any details or code samples.
Can you point me to or provide examples of .NET code doing fast bind user authentication with s.ds.p? I have been very unsuccessful googling.
After more browsing, I found this page which does have complete C# code sample.
Joe Kaplan's book .NET Developer's Guide to Directory Services Programming has some examples as well, that can be found here.

Documentation for Web API in Windows Store apps (Metro apps)

I remember seeing a few months ago some documentation on MSDN for accessing a Web API from within a Windows Store app, with samples, but I cannot find this page anymore, and a Google search doesn't yield a single related result for MSDN.
Anyone know where the documentation for this is?
[nkvu - moving out of the comments and into answers in case anyone else is looking for a similar thing]
I don't know where it on MSDN but there seems to be a downloadable sample here. And docs here and here showing code but no downloadable sample.
Most of the System.Net.Http namespace which includes the HttpClient is available for Windows Store apps.
See http://msdn.microsoft.com/en-US/library/System.Net.Http.aspx

how to implement OpenID via c#

I want to implement a login system by using openid (for login with google, yahoo) for asp.net and asp.net mvc applications, I search over the Internet (and googled that and also stacked :D) but, there is nothing to guide me to implement this; all pages was about libraries (DotNetOpenId, DotNetOpenAuth, etc);
can anybody help me to understanding and implementing this? without other libraries? thanks.
check this out:
http://www.dotnetopenauth.net/
Edit:
Just re-read and you said no libraries.
Maybe these links will help you out:
http://oauth.net/documentation/getting-started/
This one has a specifications link:
http://openid.net/developers/

Access to Facebook?

As a little learning project, I'd like to make a little app that reads data from a facebook users status updates. It's been done millions of times before, I'm sure, but is there an API or something? Would I need to signup for some Facebook developers license or anything, or is it as easy as finding the API, and then simply coding to it?
I'd like to simply get friends Status Updates via my login... seems easy enough. :)
The Facebook Developer links posted above are good, but it might be useful to look at some examples.
The Facebook C# SDK, found here: http://facebooksdk.codeplex.com/, has samples in ASP.NET MVC. It's a pretty simple project, so it should be relatively easy to see how things work in practice.
You can create an app at http://developers.facebook.com/
Then, download the sample project, replace the AppId and AppSecret with values from your registered app, and see how it works.
You can start reading here: http://developers.facebook.com/docs/
And look in the forum discussions here: http://forum.developers.facebook.net/index.php
This post was helpful to me http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
Also keep in mind this last change made for FB team about Post for canvas http://developers.facebook.com/docs/canvas/post/
Good luck!

C#. How to programmatically grant User Log On as a Service

I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in c#?
EDIT: I found an article on CodeProject with sample code that shows exactly how to do this!
I assume you've already found this KB that shows how to do it with native code. I'm looking for a C# way as well.
I tried in vain to find this. The way I did it in the end was to package the NTRights executable with my application and then launch it as a separate process.
NTRights can be found on the server 2003 resource kti and its usage is documented here:
http://support.microsoft.com/kb/315276

Categories