This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[/Script/Pal.PalGameWorldSettings] | |
OptionSettings=(Difficulty=hard,DayTimeSpeedRate=1.000000,NightTimeSpeedRate=1.000000,ExpRate=0.800000,PalCaptureRate=1.000000,PalSpawnNumRate=1.000000,PalDamageRateAttack=1.000000,PalDamageRateDefense=1.000000,PlayerDamageRateAttack=0.500000,PlayerDamageRateDefense=2.000000,PlayerStomachDecreaceRate=1.000000,PlayerStaminaDecreaceRate=1.000000,PlayerAutoHPRegeneRate=1.000000,PlayerAutoHpRegeneRateInSleep=1.000000,PalStomachDecreaceRate=1.000000,PalStaminaDecreaceRate=1.000000,PalAutoHPRegeneRate=1.000000,PalAutoHpRegeneRateInSleep=1.000000,BuildObjectDamageRate=1.000000,BuildObjectDeteriorationDamageRate=1.000000,CollectionDropRate=0.500000,CollectionObjectHpRate=1.000000,CollectionObjectRespawnSpeedRate=1.000000,EnemyDropItemRate=0.500000,DeathPenalty=All,bEnablePlayerToPlayerDamage=False,bEnableFriendlyFire=False,bEnableInvaderEnemy=True,bActiveUNKO=False,bEnableAimAssistPad=True,bEnableAimAssistKeyboard=False,DropItemMaxNum=3000,DropItemMaxNum_UNKO=100,BaseCampMaxNum=128, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "v0.12.9", | |
"notes": "Revert feat: add gfycat", | |
"pub_date": "2023-09-08T16:30:57Z", | |
"platforms": { | |
"darwin-x86_64": { | |
"signature": "Content of app.tar.gz.sig", | |
"url": "https://github.com/GHGHGHKO/dalgona/releases/download/v0.12.9/dalgona_x64.app.tar.gz" | |
}, | |
"darwin-aarch64": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun `권한 문제로 유저 정보를 가져오지 못한다`() { | |
val signInRequestDto = SignInRequestDto( | |
email = ID + 0 + EMAIL, | |
password = PASSWORD | |
) | |
token = signService.signIn(signInRequestDto).token | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.requestMatchers("/users/**").hasRole("ADMIN") | |
.anyRequest().hasRole("USER") | |
.and() | |
.exceptionHandling().accessDeniedHandler(accessDeniedHandlerCustom) | |
.and() | |
.exceptionHandling().authenticationEntryPoint(authenticationEntryPointCustom) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accessDenied.code = -1003 | |
accessDenied.message = A resource that can not be accessed with the privileges it has. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accessDenied.code = -1003 | |
accessDenied.message = 보유한 권한으로 접근할 수 없는 리소스 입니다 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ExceptionHandler(value = [AccessDeniedException::class]) | |
fun accessDeniedException(): ResponseEntity<CommonResult> { | |
return ResponseEntity | |
.status(HttpStatus.FORBIDDEN) | |
.body(responseService.failResult( | |
getMessage("accessDenied.code").toInt(), | |
getMessage("accessDenied.message"))) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.pepega.common.config.security | |
import jakarta.servlet.http.HttpServletRequest | |
import jakarta.servlet.http.HttpServletResponse | |
import org.springframework.beans.factory.annotation.Qualifier | |
import org.springframework.security.access.AccessDeniedException | |
import org.springframework.security.web.access.AccessDeniedHandler | |
import org.springframework.stereotype.Component | |
import org.springframework.web.servlet.HandlerExceptionResolver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun `모든 유저 정보를 가져온다`() { | |
mockMvc.get("/users/v1") { | |
contentType = MediaType.APPLICATION_JSON | |
header(X_AUTH_TOKEN, token) | |
} | |
.andDo { print() } | |
.andExpect { status { isOk() } } | |
.andExpect { jsonPath("$.success") { value(true) } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@BeforeEach | |
fun setUp() { | |
val roles = mutableListOf<String>() | |
roles.add("ROLE_USER") | |
roles.add("ROLE_ADMIN") | |
userMasterRepository.save( | |
UserMaster( | |
email = ADMIN, |
NewerOlder