Java 如何避免linkedin向同一应用程序重复授权
我使用上面的代码块让用户从LinkedIN向我的应用程序授予权限。 每次我将用户重定向到具有相同默认范围的authURL时,都会出现授权屏幕。Java 如何避免linkedin向同一应用程序重复授权,java,oauth,linkedin,linkedin-j,Java,Oauth,Linkedin,Linkedin J,我使用上面的代码块让用户从LinkedIN向我的应用程序授予权限。 每次我将用户重定向到具有相同默认范围的authURL时,都会出现授权屏幕。 无法确定此处是否缺少任何内容。您应该将OAuth端点从更改为。这应该对你有用 final LinkedInOAuthService oauthService = LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(consumerKeyValue, consumerSe
无法确定此处是否缺少任何内容。您应该将OAuth端点从更改为。这应该对你有用
final LinkedInOAuthService oauthService = LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(consumerKeyValue, consumerSecretValue);
LinkedInRequestToken requestToken = oauthService.getOAuthRequestToken(callbackUrl);
session.setAttribute("requestToken", requestToken);
String authUrl = requestToken.getAuthorizationUrl();
return new ModelAndView("redirect:" + authUrl);