Class RESTOAuthAuthorizationConsentController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.web.controller.api.RESTOAuthAuthorizationConsentController
-
@Controller public class RESTOAuthAuthorizationConsentController extends java.lang.Object
Controller class for serving custom OAuth2 authorization consent pages
-
-
Constructor Summary
Constructors Constructor Description RESTOAuthAuthorizationConsentController()
-
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
-
-
-
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 requestmodel
- Model objects to be passed to the viewclientId
- The clientIdscope
- The requested scopesstate
- The state object from the auth request- Returns:
-
-