Class URIFederationRestController


  • @RestController
    @RequestMapping(value="/auth/proxy/",
                    produces="application/json")
    public class URIFederationRestController
    extends AbstractURIFederationAPIService
    Used by the OpenIAM proxy for just about every single HTTP Request.

    Do *not* modify without talking to the entire team

    Author:
    Lev Bornovalov
    • Constructor Detail

      • URIFederationRestController

        @Autowired
        public URIFederationRestController​(URIFederationQueue queue)
    • Method Detail

      • federateProxyURI

        @RequestMapping(value="/federateUser",
                        method=GET)
        @ResponseBody
        public URIFederationResponse federateProxyURI​(@RequestParam(required=true,value="userId")
                                                      String userId,
                                                      @RequestParam(required=true,value="proxyURI")
                                                      String proxyURI,
                                                      @RequestParam(required=false,value="method")
                                                      String method,
                                                      @RequestParam(required=false,value="approvedAuthLevel")
                                                      String approvedAuthLevel,
                                                      @RequestParam(required=false,value="userIP")
                                                      String userIP,
                                                      @RequestParam(required=false,value="isNewFlags")
                                                      Integer isNewFlags)
      • getCookieFromProxyURIAndPrincipal

        @RequestMapping(value="/getCookieFromProxyURIAndPrincipal",
                        method=GET)
        @ResponseBody
        public SSOLoginResponse getCookieFromProxyURIAndPrincipal​(@RequestParam(required=true,value="proxyURI")
                                                                  String proxyURI,
                                                                  @RequestParam(required=true,value="principal")
                                                                  String principal,
                                                                  @RequestParam(required=true,value="method")
                                                                  String method)
        Method called by Reverse Proxy via SOAP Request Calculates a user's cookie based on the principal and the proxyURI. If the proxyURI matches an existing Content Provider, the system will look up the user's information based on the given principal and the Managed System of the Content Provider.
        Parameters:
        proxyURI - - the FULL PROXY URI being accessed. i.e. http://www.openiam.com/appContext/index.html
        principal - - the principal for this request. Must correspond to the managed system of the Content Provider found from the proxyURI parameter
        Returns:
        a Response that contains the SSOToken
      • getMetadata

        @RequestMapping(value="/metadata",
                        method=GET)
        @ResponseBody
        public URIFederationResponse getMetadata​(@RequestParam(required=true,value="userId")
                                                 String userId,
                                                 @RequestParam(required=true,value="proxyURI")
                                                 String proxyURI,
                                                 @RequestParam(required=true,value="method")
                                                 String method,
                                                 @RequestParam(required=false,value="approvedAuthLevel")
                                                 String approvedAuthLevel,
                                                 @RequestParam(required=false,value="userIP")
                                                 String userIP,
                                                 @RequestParam(required=false,value="isNewFlags")
                                                 Integer isNewFlags)
      • testPost

        @RequestMapping(value="/cert/test",
                        method=POST)
        @ResponseBody
        public String testPost​(@RequestParam(required=true,value="method")
                               String method)
      • getIdentityFromCert

        @RequestMapping(value="/cert/identity",
                        method=POST)
        @ResponseBody
        public LoginResponse getIdentityFromCert​(@RequestParam(value="proxyURI",required=true)
                                                 String proxyURI,
                                                 @RequestParam(required=true,value="method")
                                                 String method,
                                                 @RequestParam(value="cert",required=true)
                                                 org.springframework.web.multipart.MultipartFile certContents)