|
@@ -25,10 +25,10 @@ import org.hswebframework.web.AuthorizeException;
|
|
import org.hswebframework.web.authorization.Authentication;
|
|
import org.hswebframework.web.authorization.Authentication;
|
|
import org.hswebframework.web.authorization.annotation.Authorize;
|
|
import org.hswebframework.web.authorization.annotation.Authorize;
|
|
import org.hswebframework.web.authorization.oauth2.api.OAuth2ServerService;
|
|
import org.hswebframework.web.authorization.oauth2.api.OAuth2ServerService;
|
|
-import org.hswebframework.web.authorization.oauth2.model.AccessTokenModel;
|
|
|
|
-import org.hswebframework.web.authorization.oauth2.model.AuthorizationCodeModel;
|
|
|
|
-import org.hswebframework.web.authorization.oauth2.model.ImplicitAccessTokenModel;
|
|
|
|
-import org.hswebframework.web.entity.authorization.oauth2.OAuth2AccessEntity;
|
|
|
|
|
|
+import org.hswebframework.web.authorization.oauth2.api.entity.OAuth2AccessEntity;
|
|
|
|
+import org.hswebframework.web.oauth2.model.AccessTokenModel;
|
|
|
|
+import org.hswebframework.web.oauth2.model.AuthorizationCodeModel;
|
|
|
|
+import org.hswebframework.web.oauth2.model.ImplicitAccessTokenModel;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -75,7 +75,6 @@ public class OAuth2AuthorizationController {
|
|
|
|
|
|
// OAuth2ClientEntity clientEntity = oAuth2ServerService.getClient(client_id);
|
|
// OAuth2ClientEntity clientEntity = oAuth2ServerService.getClient(client_id);
|
|
// TODO: 17-3-6 validate redirect_uri
|
|
// TODO: 17-3-6 validate redirect_uri
|
|
-
|
|
|
|
OAuth2AccessEntity accessEntity = oAuth2ServerService.requestTokenByImplicit(client_id, scope);
|
|
OAuth2AccessEntity accessEntity = oAuth2ServerService.requestTokenByImplicit(client_id, scope);
|
|
ImplicitAccessTokenModel model = new ImplicitAccessTokenModel();
|
|
ImplicitAccessTokenModel model = new ImplicitAccessTokenModel();
|
|
model.setState(state);
|
|
model.setState(state);
|