Remove Url suffix .htm

0.4-beta
mkk 2015-06-25 12:55:33 +08:00
parent f049c72012
commit 6120de0ccd
6 changed files with 10 additions and 10 deletions

View File

@ -1,10 +1,10 @@
方式1:基于浏览器 (访问时后跳到登录页面,登录成功后跳转到redirect_uri指定的地址) [GET]
说明:只能使用admin或unity 账号登录才能有权限访问,若使用mobile账号登录将返回Access is denied
http://localhost:8080/spring-oauth-server/oauth/authorize?client_id=unity-client&redirect_uri=http%3a%2f%2flocalhost%3a8080%2fspring-oauth-server%2funity%2fdashboard.htm&response_type=code&scope=read
http://localhost:8080/spring-oauth-server/oauth/authorize?client_id=unity-client&redirect_uri=http%3a%2f%2flocalhost%3a8080%2fspring-oauth-server%2funity%2fdashboard&response_type=code&scope=read
说明: 由于mobile-client只支持password,refresh_token, 所以不管用哪个账号登录后都将返回Illegal action
http://localhost:8080/spring-oauth-server/oauth/authorize?client_id=mobile-client&redirect_uri=http%3a%2f%2flocalhost%3a8080%2fspring-oauth-server%2fm%2fdashboard.htm&response_type=code&scope=read
http://localhost:8080/spring-oauth-server/oauth/authorize?client_id=mobile-client&redirect_uri=http%3a%2f%2flocalhost%3a8080%2fspring-oauth-server%2fm%2fdashboard&response_type=code&scope=read
@ -13,7 +13,7 @@ http://localhost:8080/spring-oauth-server/oauth/authorize?client_id=mobile-clien
http://localhost:8080/spring-oauth-server/unity/dashboard.htm?code=zLl170
通过code换取access_token [GET]
http://localhost:8080/spring-oauth-server/oauth/token?client_id=unity-client&client_secret=unity&grant_type=authorization_code&code=zLl170&redirect_uri=http%3a%2f%2flocalhost%3a8080%2fspring-oauth-server%2funity%2fdashboard.htm
http://localhost:8080/spring-oauth-server/oauth/token?client_id=unity-client&client_secret=unity&grant_type=authorization_code&code=zLl170&redirect_uri=http%3a%2f%2flocalhost%3a8080%2fspring-oauth-server%2funity%2fdashboard
方式2:基于客户端 (注意参数中的username,password,对应用户的账号,密码) [GET]

View File

@ -17,7 +17,7 @@ public class UserController {
*
* @return View page
*/
@RequestMapping("overview.htm")
@RequestMapping("overview")
public String overview() {
return "user_overview";
}

View File

@ -22,7 +22,7 @@ public class MobileController {
private UserService userService;
@RequestMapping("dashboard.htm")
@RequestMapping("dashboard")
public String dashboard() {
return "mobile/dashboard";
}

View File

@ -23,7 +23,7 @@ public class UnityController {
private UserService userService;
@RequestMapping("dashboard.htm")
@RequestMapping("dashboard")
public String dashboard() {
return "unity/dashboard";
}

View File

@ -135,7 +135,7 @@
<c:if test="${empty clientDetailsDto.webServerRedirectUri}" var="eptRedUri">
$scope.implicitRedirectUri = location.href;
$scope.redirectUri = "http://localhost:8080/spring-oauth-server/unity/dashboard.htm";
$scope.redirectUri = "http://localhost:8080/spring-oauth-server/unity/dashboard";
</c:if>
<c:if test="${not eptRedUri}">
$scope.implicitRedirectUri = "${clientDetailsDto.webServerRedirectUri}";

View File

@ -49,13 +49,13 @@
菜单
<ul>
<li>
<a href="${contextPath}/user/overview.htm">User</a>
<a href="${contextPath}/user/overview">User</a>
</li>
<li>
<a href="${contextPath}/unity/dashboard.htm">Unity</a>
<a href="${contextPath}/unity/dashboard">Unity</a>
</li>
<li>
<a href="${contextPath}/m/dashboard.htm">Mobile</a>
<a href="${contextPath}/m/dashboard">Mobile</a>
</li>
</ul>
</body>