From 5c881b2c72d8e18238da50e7922ffe89b9dbd2bc Mon Sep 17 00:00:00 2001 From: lishengzhao Date: Tue, 26 May 2015 11:21:45 +0800 Subject: [PATCH] 00018 client_details list test client --- .../WEB-INF/jsp/clientdetails/test_client.jsp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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";