Log in to desktop application by Windows Live ID - c#

I want to create a login form for my desktop application that user can use Windows Live ID for that.
I create an application in manage.dev.live.com and use Desktop Implementation section.
I use a WebBrowser control and navigate to a given address. but I don't know how to receive the token for user.
If I have made a mistake please tell me how to fix that.

As of June 2011, Windows Live ID supports OAUTH 2.0 and should enable you to do that (read more about it). WPF code example can be found at https://github.com/liveservices/LiveSDK/tree/master/Samples/CSharpDesktop.

Related

How can I request the user to open Desktop Application in React?

I couldn't find the exact answer I was looking for. I have two applications - web application built with react and desktop application built in C# Forms. What I want is if the user goes to a certain page in the Web Application, the browser should open (with or without a request) the windows application and send data, like the user's id. Could you guys give me an advice how this can be done?
For that, when installing your windows C# form in the user machine, you need to register a custom protocol in the registery.
See How do I register a custom URL protocol in Windows?

Require Windows credentials on WPF app start

I have a WPF application that will work offline with local data. On app start I need the user to re-enter their Windows credentials to verify that they are in fact the correct Windows user.
Is there a .NET method to make the user re-login when the app starts?
Or do I need to create a login page and logic and compare against the current user like this?
Seems like a technology solution to a behavior problem, but, you want to look at the CredUIPromptForCredentials API and the LogonUser API to prompt and create the token.

Sign-in Dialog in Windows 8 app to use Live Connect services

When we call LiveAuthClient.LoginAsync(...) method from Windows 8 app, it will contact authorization server to get access token using OAuth 2.0 protocol (this initiates sign-in process). Then authorization server authenticates resource owner and gets whether owner grant/denies the permission. To do this it throws up UI dialogs on the user agent (in this case it is Windows 8 app).
I would like to know how this dialog pops up on our app. Will some information be sent by authorization server, using that Live SDK is popping up the dialog? I would like to know the origination point of the dialog. I appreciate if someone could help me in understanding it.
I haven't used the LiveSDK myself but that sounds very much like a standard OAuth procedure like you would get when you use WebAuthenticationBroker yourself.
Not sure if I understood your question correctly, though. If you want to get more insight into the authentication broker you should have a look at the sample code mentioned in the documentation.

windows authentication in win 8 apps

I am developing a windows 8 app using c# and xaml. My app should be able to implement windows authentication so that it can allow the logged in user to launch the app. Can anyone help or give me a code snippet to solve this problem???
thanks in advance
To Enable Windows Authentication in windows 8 App
Go to Package.appxmanifest file.
Go to Capabilities tab. Check the Enterprise Authentication feature on the Page.
Include the Namespace
using Windows.System.UserProfile;
Eg to Use the Profile User Name :
txtUserName.Text = await UserInformation.GetFirstNameAsync();
This is how you will get the details of the Windows Authentication user.
Hope this helped you !
You can't do that. Windows 8 "Immersive" applications are sandboxed and have no access to Windows' own user management. In any event user passwords are hashed (a one-way transform), you can't read back the original passwords even if you had access to the SAM file.
If you want a user's Windows password you'll have to ask them up-front, but I gurantee no (intelligent) user would voluntarily agree to this, and chances are your application would be denied on the Windows app-store if you did submit it.

share a message in Linkedin via windows phone

want to share a link from my application in windows phone 7. Any one know a good API library for this.....I have downloaded a API from a site which shows null information like this
Usage
1. Create a button that sends the user to a page where the login process will start like LinkedInBeginAuth.aspx or Account/LinkedInBeginAuth in MVC
2.Inside LinkedInBeginAuth Page add the following code
Create the page that the user will be redirected after login
Inside that page add
5.That's it!
Library is in EARLY development so expect major changes. Use it wisely.
Have you looked at the ShareStatusTask :-
http://msdn.microsoft.com/en-us/library/hh394027(v=VS.92).aspx
If you want to use the LinkedIn API you'll need to connect via OAuth. (You can do this with Hammock & a WebBrowser control.)
Once connected you can call their REST API.
Alternatively, or possibly as a starting point, you could look at http://linkedintoolkit.codeplex.com/ but it doesn't look complete.

Categories