有特定的原因为什么只能使用POST请求(到/ signin / {providerId})来启动使用{providerId}的用户登录吗?为什么不使用GET请求?
答案 0 :(得分:0)
回答我自己的问题:也许是因为
/**
* Process the authentication callback when neither the oauth_token or code parameter is given, likely indicating that the user denied authorization with the provider.
* Redirects to application's sign in URL, as set in the signInUrl property.
* @return A RedirectView to the sign in URL
*/
@RequestMapping(value="/{providerId}", method=RequestMethod.GET)
public RedirectView canceledAuthorizationCallback() {
return redirect(signInUrl);
}
无论如何,如果也可以使用GET请求登录(使用不同的URL或缩小映射范围的参数),那就太好了。