Skip to content

Commit fbc74df

Browse files
authored
release: 1.7.2 (#187)
2 parents 46c5076 + a2fb2df commit fbc74df

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/main/kotlin/org/gitanimals/auction/controller/AuctionController.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class AuctionController(
6363
@RequestParam(name = "sort-direction", defaultValue = "DESC") sortDirection: String,
6464
): ProductsResponse {
6565
val products = productService.getProductHistories(
66-
pageNumber,
67-
personaType,
68-
count,
69-
orderType,
70-
sortDirection,
66+
pageNumber = pageNumber,
67+
personaType = personaType,
68+
count = count,
69+
orderType = orderType,
70+
sortDirection = sortDirection,
7171
)
7272

7373
return ProductsResponse.from(products)

src/main/kotlin/org/gitanimals/identity/controller/Oauth2Controller.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ class Oauth2Controller(
1717
private val appleLoginFacade: AppleLoginFacade,
1818
) {
1919

20+
@GetMapping("/logins/oauth/github/by-redirect-when-success/{redirectWhenSuccess}")
21+
@ResponseStatus(HttpStatus.MOVED_PERMANENTLY)
22+
fun redirectToGithubWithPathVariables(
23+
@PathVariable("redirectWhenSuccess") redirectWhenSuccess: RedirectWhenSuccess,
24+
): ResponseEntity<Unit> {
25+
return ResponseEntity.status(HttpStatus.MOVED_PERMANENTLY)
26+
.header(
27+
"Location",
28+
"https://github.com/login/oauth/authorize?client_id=$githubClientId&redirect_uri=${redirectWhenSuccess.callbackUri}"
29+
)
30+
.build()
31+
}
32+
2033
@GetMapping("/logins/oauth/github")
2134
@ResponseStatus(HttpStatus.MOVED_PERMANENTLY)
2235
fun redirectToGithub(

0 commit comments

Comments
 (0)