@Controller
@RequestMapping(value="oauth")
public class OauthController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private SysAppClientService |
appClientService |
private ConfigDataComponent |
configDataComponent |
protected org.apache.commons.logging.Log |
log |
private LogLoginService |
logLoginService |
private OauthComponent |
oauthComponent |
static java.lang.String |
RETURN_URL |
protected SafeConfigComponent |
safeConfigComponent |
protected SiteComponent |
siteComponent |
static java.lang.String |
STATE_COOKIE_NAME |
private SysUserService |
sysUserService |
private SysUserTokenService |
sysUserTokenService |
构造器和说明 |
---|
OauthController() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
callback(java.lang.String channel,
SysSite site,
java.lang.String state,
java.lang.String code,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
java.lang.String |
login(java.lang.String channel,
SysSite site,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected final org.apache.commons.logging.Log log
public static final java.lang.String STATE_COOKIE_NAME
public static final java.lang.String RETURN_URL
private OauthComponent oauthComponent
private ConfigDataComponent configDataComponent
protected SafeConfigComponent safeConfigComponent
private SysAppClientService appClientService
private SysUserTokenService sysUserTokenService
private SysUserService sysUserService
private LogLoginService logLoginService
protected SiteComponent siteComponent
@RequestMapping(value="login/{channel}") public java.lang.String login(@PathVariable(value="channel") java.lang.String channel, @RequestAttribute SysSite site, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
channel
- site
- returnUrl
- request
- response
- @RequestMapping(value="callback/{channel}") public java.lang.String callback(@PathVariable(value="channel") java.lang.String channel, @RequestAttribute SysSite site, java.lang.String state, java.lang.String code, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
channel
- site
- state
- code
- request
- session
- response
- model
-