Skip to content

Commit

Permalink
AUTH-33
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Jan 17, 2023
1 parent 1858a0a commit 3784b0d
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -20,7 +20,8 @@ public class SamlController {

private @Autowired Site site;

@PostMapping(path = "/saml/sign-on", produces = { MediaType.TEXT_PLAIN_VALUE })
@PostMapping(path = "/saml/sign-on", produces = { MediaType.TEXT_PLAIN_VALUE }, consumes = {
MediaType.TEXT_PLAIN_VALUE, MediaType.APPLICATION_XML_VALUE })
public ResponseEntity<String> signOn(@RequestBody String payload) {
return new ResponseEntity<>(payload, HttpStatus.OK);
}
Expand All @@ -30,7 +31,8 @@ public ResponseEntity<String> signOn() {
return new ResponseEntity<>(HttpStatus.OK);
}

@PostMapping(path = "/saml/logout", produces = { MediaType.TEXT_PLAIN_VALUE })
@PostMapping(path = "/saml/logout", produces = { MediaType.TEXT_PLAIN_VALUE }, consumes = {
MediaType.TEXT_PLAIN_VALUE, MediaType.APPLICATION_XML_VALUE })
public ResponseEntity<String> logout(@RequestBody String payload) {
return new ResponseEntity<>(payload, HttpStatus.OK);
}
Expand All @@ -40,7 +42,8 @@ public ResponseEntity<String> logout() {
return new ResponseEntity<>(HttpStatus.OK);
}

@PostMapping(path = "/saml", produces = { MediaType.TEXT_PLAIN_VALUE })
@PostMapping(path = "/saml", produces = { MediaType.TEXT_PLAIN_VALUE }, consumes = { MediaType.TEXT_PLAIN_VALUE,
MediaType.APPLICATION_XML_VALUE })
public ResponseEntity<String> reply(@RequestBody String payload) {
return new ResponseEntity<>(payload, HttpStatus.OK);
}
Expand Down

0 comments on commit 3784b0d

Please sign in to comment.