Class AuthorizationServerController


  • @Controller
    @RequestMapping("oauth")
    @CrossOrigin
    public class AuthorizationServerController
    extends Object
    The AuthorizationServerController class implements a simple OAuth authorization server that provides support for the Resource Owner Password Grant.
    • Constructor Detail

      • AuthorizationServerController

        public AuthorizationServerController​(ISecurityService securityService,
                                             ITokenService tokenService)
        Constructs a new AuthorizationServerController.
        Parameters:
        securityService - the Security Service
        tokenService - the Token Service
    • Method Detail

      • token

        @PostMapping(value="/token",
                     produces="application/json")
        public org.springframework.http.ResponseEntity<String> token​(javax.servlet.http.HttpServletRequest request,
                                                                     @RequestParam
                                                                     Map<String,​String> parameters)
        The "token" endpoint that supports the Resource Owner Password Grant.
        Parameters:
        request - the HTTP servlet request
        parameters - the request parameter s
        Returns:
        the token response