类 ConsentController
java.lang.Object
cn.herodotus.stirrup.oauth2.management.controller.ConsentController
OAuth2 授权确认页面 - controller
- 作者:
- gengwei.zheng
- 另请参阅:
- Date:
- 2022-03-01
-
构造器概要
构造器构造器说明ConsentController(OAuth2ApplicationService applicationService, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService, OAuth2ScopeService scopeService) -
方法概要
-
构造器详细资料
-
ConsentController
public ConsentController(OAuth2ApplicationService applicationService, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService, OAuth2ScopeService scopeService)
-
-
方法详细资料
-
consent
@GetMapping("/oauth2/consent") public String consent(Principal principal, org.springframework.ui.Model model, @RequestParam("client_id") String clientId, @RequestParam("scope") String scope, @RequestParam("state") String state, @RequestParam(value="user_code",required=false) String userCode) Consent页面(确认请求scope的页面)- 参数:
principal- 用户信息model- modelclientId- 客户端IDscope- 请求范围state- state参数- 返回:
- Consent页面
-