1
如何更改Spring Security Oauth2插件的Sparklr/Tonr example(https://github.com/spring-projects/spring-security-oauth
)以打开一个弹出窗口询问用户的权限,而不是将他重定向到另一个页面?Spring Security Oauth2 Authorizarion Popup
如何更改Spring Security Oauth2插件的Sparklr/Tonr example(https://github.com/spring-projects/spring-security-oauth
)以打开一个弹出窗口询问用户的权限,而不是将他重定向到另一个页面?Spring Security Oauth2 Authorizarion Popup
这很简单。你只需要这样一个简短的JS
window.open("http://localhost:8080/sparklr2/oauth/authorize?type=code&client_id=.....");
并依赖于结果,你应该通知父窗口做一些事情。如:刷新这样
window.opener.location.reload(false);
这应该既implicit
和authorization_code
补助工作。