c# - How can I use the Live SDK on the client to login to my own Web API? -


fellow programmers,

it hard me wrap head around whole token based oauth authorization flow please forgive me eventual stupidity , broken english (i'm poland).

i'm developing web service using .net's web api 2 technology , 2 native clients: windows store (8.1) & windows phone 8.1. controllers on api side of course need authorization. want users not forced create new account in system seperate login data i've decided use microsoft authentication.

i've created application on live.com developers , got client id & secret. i've enabled microsoft authentication in app_start\startup.auth.cs correct id & secret. now, i've made native client (win store app) using live sdk 5.6 (newest available) , associated store. managed sign in account in client using sdk , basic data me testing purposes.

but that's managed do. question is:

how can use live sdk on client login own web api? what's flow?

i've found this:
http://leastprivilege.com/2013/02/02/asp-net-web-api-authentication-using-the-microsoft-account/
, says have send authentication token service using auth header, authentication token in null, have access token. also, url send it?

some other "useful" info i've done (will update):

  • when creating liveauthclient didn't give constructor redirect url


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -