@Controller
@RequestMapping(value="${hsweb.web.mappings.oauth2-client-callback:oauth2}")
public class OAuth2ClientController
extends Object
| 构造器和说明 |
|---|
OAuth2ClientController() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.servlet.view.RedirectView |
boot(String serverId,
String redirect,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session) |
org.springframework.web.servlet.view.RedirectView |
callback(String redirect,
String serverId,
String code,
String state,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session) |
ResponseMessage<String> |
requestState(javax.servlet.http.HttpSession session) |
void |
setoAuth2RequestService(OAuth2RequestService oAuth2RequestService) |
void |
setoAuth2ServerConfigService(OAuth2ServerConfigService oAuth2ServerConfigService) |
@Autowired public void setoAuth2ServerConfigService(OAuth2ServerConfigService oAuth2ServerConfigService)
@Autowired public void setoAuth2RequestService(OAuth2RequestService oAuth2RequestService)
@GetMapping(value="/state") @ResponseBody public ResponseMessage<String> requestState(javax.servlet.http.HttpSession session)
@GetMapping(value="/boot/{serverId}")
public org.springframework.web.servlet.view.RedirectView boot(@PathVariable
String serverId,
@RequestParam(defaultValue="/")
String redirect,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
throws UnsupportedEncodingException
@GetMapping(value="/callback/{serverId}")
public org.springframework.web.servlet.view.RedirectView callback(@RequestParam(defaultValue="/")
String redirect,
@PathVariable
String serverId,
@RequestParam
String code,
@RequestParam
String state,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
throws UnsupportedEncodingException
Copyright © 2018. All rights reserved.