Class ConsentController

java.lang.Object
cn.herodotus.engine.oauth2.management.controller.ConsentController

@Controller public class ConsentController extends Object
OAuth2 授权确认页面 - controller
Author:
gengwei.zheng
See Also:
  • OAuth2AuthorizationEndpointFilter
Date:
2022-03-01
  • 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 - model
      clientId - 客户端ID
      scope - 请求范围
      state - state参数
      Returns:
      Consent页面