alfdev / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

Page not found when linkedin server redirect to my callbackurl #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. spring definitions
    <bean id="linkedInApiOAuthFactory" class="com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceFactory" factory-method="getInstance"/>
    <bean id="linkedInOAuthService" factory-bean="linkedInApiOAuthFactory" factory-method="createLinkedInOAuthService">
         <constructor-arg value="5rtr61z5gbmm"/> 
         <constructor-arg value="QZnllKdDc8Tp9hrn"/> 
    </bean>
2. LinkedInRequestToken requestToken = 
linkedInOAuthService.getOAuthRequestToken("http://mypublicipadress:8080/app/proc
essOAuthRequest.do");
3. session.setAttribute("requestToken", requestToken);
4. response.sendRedirect(requestToken.getAuthorizationUrl());
5. user "allow" app on linkedin page
6. linkedin redirect to strange page
https://www.linkedin.com/uas/oauth/http://mypublicipadress:8080/app/processOAuth
Request.do?oauth_token=b9909a1c-0e3c-4c5e-xxxx-872b45662470&oauth_verifier=xxxxx
with message "Page not found"
what's excpected is redirect to my callback url !!

What version of the product are you using?
        <dependency>
            <groupId>oauth.signpost</groupId>
            <artifactId>signpost-core</artifactId>
            <version>1.2.1</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.linkedin-j</groupId>
            <artifactId>linkedin-j-core</artifactId>
            <version>1.0.415</version>
        </dependency>

On what operating system? opensuse

thanks in advance

Please provide any additional information below.

Original issue reported on code.google.com by cercleim...@gmail.com on 28 Dec 2011 at 3:31