Class AuthorizationServerController
java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.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 Summary
ConstructorsConstructorDescriptionAuthorizationServerController(ISecurityService securityService, ITokenService tokenService) Constructs a new AuthorizationServerController. -
Method Summary
-
Constructor Details
-
AuthorizationServerController
Constructs a new AuthorizationServerController.- Parameters:
securityService- the Security ServicetokenService- the Token Service
-
-
Method Details
-
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 requestparameters- the request parameter s- Returns:
- the token response
-