@Test public void setAuthenticationMethod() throws Exception { assertEquals(USER, idpConfiguration.getAuthenticationMethod()); api(ALL.name(), "/api/authmethod"); assertEquals(ALL, idpConfiguration.getAuthenticationMethod()); }
@PutMapping("authmethod") public void setAuthenticationMethod(@RequestBody String authenticationMethod) { LOG.info("Request to set auth method to {}", authenticationMethod); configuration().setAuthenticationMethod(AuthenticationMethod.valueOf(authenticationMethod)); }
IdpController extends SharedController { @PutMapping("authmethod") public void setAuthenticationMethod(@RequestBody String authenticationMethod) { LOG.info("Request to set auth method to {}", authenticationMethod); configuration().setAuthenticationMethod(AuthenticationMethod.valueOf(authenticationMethod)); } }
IdpController extends SharedController { @PutMapping("authmethod") public void setAuthenticationMethod(@RequestBody String authenticationMethod) { LOG.info("Request to set auth method to {}", authenticationMethod); configuration().setAuthenticationMethod(AuthenticationMethod.valueOf(authenticationMethod)); } @Autowired  IdpController(IdpConfiguration configuration); }
IdpController extends SharedController { @PutMapping("authmethod") public void setAuthenticationMethod(@RequestBody String authenticationMethod) { LOG.info("Request to set auth method to {}", authenticationMethod); configuration().setAuthenticationMethod(AuthenticationMethod.valueOf(authenticationMethod)); } @Autowired  IdpController(IdpConfiguration configuration); @PutMapping("/attributes") void setAttributes(@RequestBody Map<String, List<String>> attributes); @PutMapping("/attributes/{name:.+}") void setAttribute(@PathVariable String name, @RequestBody List<String> values); @PutMapping("/attributes/{name:.+}/{userName:.+}") void setAttributeForUser(@PathVariable String name, @PathVariable String userName,
                                  @RequestBody List<String> values); @DeleteMapping("/attributes/{name:.+}") void removeAttribute(@PathVariable String name); @DeleteMapping("/attributes/{name:.+}/{userName:.+}") void removeAttributeForUser(@PathVariable String name, @PathVariable String userName); @PutMapping("/users") void addUser(@RequestBody User user); @PutMapping("authmethod") void setAuthenticationMethod(@RequestBody String authenticationMethod); @PutMapping("/acsendpoint") void setAcsEndpoint(@RequestBody String acsEndpoint); }
IdpController extends SharedController { @PutMapping("authmethod") public void setAuthenticationMethod(@RequestBody String authenticationMethod) { LOG.info("Request to set auth method to {}", authenticationMethod); configuration().setAuthenticationMethod(AuthenticationMethod.valueOf(authenticationMethod)); } @Autowired  IdpController(IdpConfiguration configuration); @PutMapping("/attributes") void setAttributes(@RequestBody Map<String, List<String>> attributes); @PutMapping("/attributes/{name:.+}") void setAttribute(@PathVariable String name, @RequestBody List<String> values); @PutMapping("/attributes/{name:.+}/{userName:.+}") void setAttributeForUser(@PathVariable String name, @PathVariable String userName,
                                  @RequestBody List<String> values); @DeleteMapping("/attributes/{name:.+}") void removeAttribute(@PathVariable String name); @DeleteMapping("/attributes/{name:.+}/{userName:.+}") void removeAttributeForUser(@PathVariable String name, @PathVariable String userName); @PutMapping("/users") void addUser(@RequestBody User user); @PutMapping("authmethod") void setAuthenticationMethod(@RequestBody String authenticationMethod); @PutMapping("/acsendpoint") void setAcsEndpoint(@RequestBody String acsEndpoint);  }