1
votes

I'm trying to login into a Skype account from windows application. I'm able to sign-in into the Microsoft account using Graph API(https://graph.microsoft.com/v1.0/me) but in response, I'm unable to get skype name and the other data.

I'm able to login into Microsoft account from windows form application following the steps in below URL.

https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-windows-desktop

I need to know how I can obtain skype name at login using Graph API.Even the Graph API explorer doesn't contain any info regarding skype handle.

https://developer.microsoft.com/en-us/graph/graph-explorer

1

1 Answers

0
votes

The Skype api doesn't use the graph api. Instead it has its own endpoint https://webdirX.online.lync.com.

To get a valid access token you have to send a request with the following format:

GET https://login.microsoftonline.com/oauth2/authorize?
response_type=id_token
&client_id=<your-application's-client-id>
&redirect_uri=<reply-uri-for-your-app>
&state=<unique-string-to-track-requests>
&resource=webdirX.online.lync.com 
HTTP/1.1

For a introduction on how to use it you should take a look at the Skype for Business authentication using Azure AD article.