Class ConsentController
java.lang.Object
cn.herodotus.engine.oauth2.management.controller.ConsentController
OAuth2 授权确认页面 - controller
- Author:
- gengwei.zheng
- See Also:
-
OAuth2AuthorizationEndpointFilter
- Date:
- 2022-03-01
-
Constructor Summary
ConstructorsConstructorDescriptionConsentController(OAuth2ApplicationService applicationService, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService, OAuth2ScopeService scopeService) -
Method Summary
-
Constructor Details
-
ConsentController
public ConsentController(OAuth2ApplicationService applicationService, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService authorizationConsentService, OAuth2ScopeService scopeService)
-
-
Method Details
-
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的页面)- Parameters:
principal- 用户信息model- modelclientId- 客户端IDscope- 请求范围state- state参数- Returns:
- Consent页面
-