Class RESTOAuthAuthorizationConsentController


  • @Controller
    public class RESTOAuthAuthorizationConsentController
    extends java.lang.Object
    Controller class for serving custom OAuth2 authorization consent pages
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.web.servlet.ModelAndView consent​(java.security.Principal principal, java.util.Map<java.lang.String,​java.lang.Object> model, java.lang.String clientId, java.lang.String scope, java.lang.String state)
      Basic authorization consent controller for OAuth2
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RESTOAuthAuthorizationConsentController

        public RESTOAuthAuthorizationConsentController()
    • Method Detail

      • consent

        @GetMapping("/api/oauth/consent")
        public org.springframework.web.servlet.ModelAndView consent​(java.security.Principal principal,
                                                                    java.util.Map<java.lang.String,​java.lang.Object> model,
                                                                    @RequestParam("client_id")
                                                                    java.lang.String clientId,
                                                                    @RequestParam("scope")
                                                                    java.lang.String scope,
                                                                    @RequestParam("state")
                                                                    java.lang.String state)
        Basic authorization consent controller for OAuth2
        Parameters:
        principal - The princiapl user making the auth request
        model - Model objects to be passed to the view
        clientId - The clientId
        scope - The requested scopes
        state - The state object from the auth request
        Returns: