Class MockLoginController
java.lang.Object
no.nav.security.token.support.spring.test.MockLoginController
-
Constructor Summary
ConstructorsConstructorDescriptionMockLoginController
(no.nav.security.mock.oauth2.MockOAuth2Server mockOAuth2Server) -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.Cookie
addCookie
(String issuerId, String audience, String subject, String cookieName, String redirect, String expiry, javax.servlet.http.HttpServletResponse response) javax.servlet.http.Cookie
addCookie
(String issuerId, String cookieName, String redirect, Map<String, Object> claims, javax.servlet.http.HttpServletResponse response)
-
Constructor Details
-
Method Details
-
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
-