Skip to content

Commit

Permalink
update :: 빌드 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo committed Feb 28, 2024
1 parent 7508047 commit bec7847
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ import com.example.v1oauthauthorizationservice.infrastructure.oauth2.presentatio
import com.example.v1oauthauthorizationservice.infrastructure.oauth2.presentation.dto.response.RegenerateSecretResponse
import com.example.v1oauthauthorizationservice.infrastructure.oauth2.presentation.dto.response.RegisterClientResponse
import com.example.v1oauthauthorizationservice.infrastructure.oauth2.presentation.dto.response.UpdateClientResponse
import com.example.v1oauthauthorizationservice.infrastructure.user.repository.dtos.UserInformationDto
import com.example.v1oauthauthorizationservice.infrastructure.user.security.AuthDetailsService
import org.springframework.web.bind.annotation.*

@RestController
@RequestMapping("/oauth2")
class OAuthController(
private val OAuthApi: OAuthApi,
private val authDetailsService: AuthDetailsService
private val OAuthApi: OAuthApi
) {

@GetMapping("/client")
Expand All @@ -37,9 +34,4 @@ class OAuthController(
fun regenerateSecret(@PathVariable("client-id") clientId: String): RegenerateSecretResponse {
return OAuthApi.regenerateSecret(clientId)
}

@GetMapping("/userinfo/{account-id}")
fun getUserInfo(@PathVariable("account-id") accountId: String): UserInformationDto {
return authDetailsService.getUserInformation(accountId)
}
}

This file was deleted.

0 comments on commit bec7847

Please sign in to comment.