Note that there are some explanatory texts on larger screens.

plurals
  1. POspring-social-vkontakte problems with authorizationCode
    primarykey
    data
    text
    <p>I try to develop an application with connection to social set vkontakte. To do this I use spring-social-vkontakte module of spring-social from https:// github.com/vkolodrevskiy/spring-social-vkontakte as this resources is mentioned in official site spring social http:// www.springsource.org/spring-social.</p> <p>Problem is that when I use VKontakteConnectionFactory to make request to my application in vkontakte I can't use my local address in redirect_uri because I receive na error:</p> <pre><code>{"error":"invalid_request","error_description":"redirect_uri has wrong domain, check application settings"} </code></pre> <p>in vkontakte documentation <a href="http://vk.com/developers.php?oid=-17680044&amp;p=Authorizing_Client_Applications" rel="nofollow">http://vk.com/developers.php?oid=-17680044&amp;p=Authorizing_Client_Applications</a> in section how to build authorization url is described: "REDIRECT_URI – the address to which access_token will be rendered". To resole this problem I use http:// api.vkontakte.ru/blank.html as redirect_uri, I can receive an code but after authorization I can't back to my application. It is a problem. My example:</p> <pre><code>VKontakteConnectionFactory vKontakteConnectionFactory = new VKontakteConnectionFactory(app_id, app_secret); OAuth2Operations operations = vKontakteConnectionFactory.getOAuthOperations(); OAuth2Parameters parameters = new OAuth2Parameters(); parameters.setRedirectUri("http://api.vkontakte.ru/blank.html"); String authorazeUrl = operations.buildAuthorizeUrl(GrantType.AUTHORIZATION_CODE, parameters); response.sendRedirect(authorazeUrl); </code></pre> <p>In vkontakte I have created on application with next parameter:</p> <ul> <li>Site address: <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a></li> <li>Base domain: localhost (in this place I can't type localhost:8080, service denies it)</li> </ul> <p>I destroyed some links because I can't post so many(</p> <p>If somebody knows how to do redirection to localhost or some other solution how to solve this problem, please help me.</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload