Class SimpleOauthController
-
- All Implemented Interfaces:
@Controller()@ConditionalWingsEnabled(abs = WarlockEnabledProp.Key$mvcOauth) public class SimpleOauthControllerSimple Oauth validation for testing and API use. github authorizing-oauth-appsauthorization/the-authorization-response
- Since:
2022-11-04
trydofor
-
-
Constructor Summary
Constructors Constructor Description SimpleOauthController()
-
Method Summary
Modifier and Type Method Description ResponseEntity<String>authorize(@RequestParam(value = WarlockOauthService.ClientId) String clientId, @RequestParam(value = WarlockOauthService.RedirectUri, required = false) String redirectUri, @RequestParam(value = WarlockOauthService.Scope, required = false) String scope, @RequestParam(value = WarlockOauthService.State, required = false) String state, @RequestHeader(value = "Accept", required = false) String accept, HttpServletRequest request)ResponseEntity<out Object>accessToken(@RequestParam(value = WarlockOauthService.ClientId) String clientId, @RequestParam(value = WarlockOauthService.ClientSecret) String clientSecret, @RequestParam(value = WarlockOauthService.Code, required = false) String code, @RequestParam(value = WarlockOauthService.RedirectUri, required = false) String redirectUri, @RequestHeader(value = "Accept", required = false) String accept)ResponseEntity<String>revokeToken(@RequestParam(value = WarlockOauthService.ClientId) String clientId, @RequestParam(value = WarlockOauthService.Code) String code, @RequestParam(value = WarlockOauthService.RedirectUri, required = false) String redirectUri, @RequestHeader(value = "Accept", required = false) String accept)voidsetWarlockOauthService(WarlockOauthService warlockOauthService)-
-
Method Detail
-
authorize
@RequestMapping(value = "${" + WarlockUrlmapProp.Key$oauthAuthorize + "}", method = {RequestMethod.POST, RequestMethod.GET}) ResponseEntity<String> authorize(@RequestParam(value = WarlockOauthService.ClientId) String clientId, @RequestParam(value = WarlockOauthService.RedirectUri, required = false) String redirectUri, @RequestParam(value = WarlockOauthService.Scope, required = false) String scope, @RequestParam(value = WarlockOauthService.State, required = false) String state, @RequestHeader(value = "Accept", required = false) String accept, HttpServletRequest request)
-
accessToken
@RequestMapping(value = "${" + WarlockUrlmapProp.Key$oauthAccessToken + "}", method = {RequestMethod.POST}) ResponseEntity<out Object> accessToken(@RequestParam(value = WarlockOauthService.ClientId) String clientId, @RequestParam(value = WarlockOauthService.ClientSecret) String clientSecret, @RequestParam(value = WarlockOauthService.Code, required = false) String code, @RequestParam(value = WarlockOauthService.RedirectUri, required = false) String redirectUri, @RequestHeader(value = "Accept", required = false) String accept)
-
revokeToken
@RequestMapping(value = "${" + WarlockUrlmapProp.Key$oauthRevokeToken + "}", method = {RequestMethod.POST}) ResponseEntity<String> revokeToken(@RequestParam(value = WarlockOauthService.ClientId) String clientId, @RequestParam(value = WarlockOauthService.Code) String code, @RequestParam(value = WarlockOauthService.RedirectUri, required = false) String redirectUri, @RequestHeader(value = "Accept", required = false) String accept)
-
setWarlockOauthService
@Autowired() void setWarlockOauthService(WarlockOauthService warlockOauthService)
-
-
-
-