diff --git a/src/main/webapp/WEB-INF/jsp/clientdetails/test_client.jsp b/src/main/webapp/WEB-INF/jsp/clientdetails/test_client.jsp index 9780965..c7330e6 100644 --- a/src/main/webapp/WEB-INF/jsp/clientdetails/test_client.jsp +++ b/src/main/webapp/WEB-INF/jsp/clientdetails/test_client.jsp @@ -76,6 +76,22 @@ + +
+
Test [implicit]
+
+

输入redirect_uri 后点击链接地址. 获取access_token后注意查看redirect_uri的hash部分(#号后边部分)

+ redirect_uri: + +

+ /oauth/authorize?client_id={{clientId}}&client_secret={{clientSecret}}&response_type=token&scope={{scope}}&redirect_uri={{implicitRedirectUri}} +

+
+
+
+
Back
@@ -89,6 +105,8 @@ $scope.scope = "${clientDetailsDto.scope}"; $scope.redirectUri = "${empty clientDetailsDto.webServerRedirectUri?'http://localhost:8080/spring-oauth-server/unity/dashboard.htm':clientDetailsDto.webServerRedirectUri}"; + $scope.implicitRedirectUri = "${empty clientDetailsDto.webServerRedirectUri?pageContext.request.requestURI:clientDetailsDto.webServerRedirectUri}"; + $scope.username = "mobile"; $scope.password = "mobile";