File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/main/kotlin/com/wafflestudio/csereal/common/controller Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ package com.wafflestudio.csereal.common.controller
2+
3+ import jakarta.servlet.http.HttpServletResponse
4+ import org.springframework.beans.factory.annotation.Value
5+ import org.springframework.context.annotation.Profile
6+ import org.springframework.web.bind.annotation.GetMapping
7+ import org.springframework.web.bind.annotation.RestController
8+
9+ @Profile(" !test" )
10+ @RestController
11+ class LoginController (
12+ @Value(" \$ {login-page}" )
13+ private val loginPage : String
14+ ) {
15+ @GetMapping(" /api/v1/login" )
16+ fun redirectToLoginURL (response : HttpServletResponse ) {
17+ val redirectUrl = " $loginPage /oauth2/authorization/idsnucse"
18+ response.sendRedirect(redirectUrl)
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments