简体   繁体   中英

Best way to authenticate via OAuth in WinRT Windows Store App

Anybody knows about any tools which I could use to authenticate via OAuth in my Windows Store application written in c# XAML approach?

I known about DotNetOpenAuth, and Hammock but these tools are not PCL, and I can not reference it from my app!

Only way is to manualy generate requests and send it via HttpClient ? Or, is any simpler way?

It is late response, but maybe I will help some one.

From what I remember I used ultimately restsharp , It done job very well.

You would use WebAuthenticationBroker.AuthenticateAsync to authenticate via OAuth against OAuth providing websites like Twitter, Facebook aso

See the Microsoft Web authentication broker sample .

I have just found this OAuth library for PCL (Portable Class Libraries).

Source Code :

Nuget Package

I have not tested it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM