Class MockLoginController


  • @RestController
    @RequestMapping("/local")
    public class MockLoginController
    extends Object
    • Constructor Detail

      • MockLoginController

        public MockLoginController​(no.nav.security.mock.oauth2.MockOAuth2Server mockOAuth2Server)
    • Method Detail

      • addCookie

        @GetMapping("/cookie")
        public javax.servlet.http.Cookie addCookie​(@RequestParam("issuerId")
                                                   String issuerId,
                                                   @RequestParam("audience")
                                                   String audience,
                                                   @RequestParam(value="subject",defaultValue="12345678910")
                                                   String subject,
                                                   @RequestParam(value="cookiename",defaultValue="localhost-idtoken")
                                                   String cookieName,
                                                   @RequestParam(value="redirect",required=false)
                                                   String redirect,
                                                   @RequestParam(value="expiry",required=false)
                                                   String expiry,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws IOException
        Throws:
        IOException
      • addCookie

        @PostMapping("/cookie/{issuerId}")
        public javax.servlet.http.Cookie addCookie​(@PathVariable("issuerId")
                                                   String issuerId,
                                                   @RequestParam(value="cookiename",defaultValue="localhost-idtoken")
                                                   String cookieName,
                                                   @RequestParam(value="redirect",required=false)
                                                   String redirect,
                                                   @RequestBody
                                                   Map<String,​Object> claims,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws IOException
        Throws:
        IOException