문제

I want that my Windows Phone 8 app uses LinkedIn in order to search companies and get contacts. To do so I need an Access Token and, to get that, I need an Authorization Code.

As far as I have read, the LinkedIn API uses OAUTH2 and the url to get the Authorization Code is the following:

https://www.linkedin.com/uas/oauth2/authorization?response_type=code
&client_id=YOUR_API_KEY
&scope=SCOPE
&state=STATE
&redirect_uri=YOUR_REDIRECT_URI

The problem is the REDIRECT URI parameter. I don't want that, because I just want to get the Authorization Code, and then get the Token with the code.

Do you know if is there any way to avoid redirecting? Or using some kind of redirect which doesn't bring you to other webpage?

도움이 되었습니까?

해결책

I decided to use a custom host, so now the problem is solved.

다른 팁

In case anyone has a similar issue, I struggled with this and found an easier way (maybe not the correct way). I redirected to a made up address (http://madeupaddress.com) and on the Navigating event checked if the url started with my made up address, if so, i closed the browser and take the token from the e.URI.Query parameters, then apply for the access token using the code.

Thanks go to Vittorio Bertocci

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top