diff --git a/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthController.kt b/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthController.kt index 6f7e16a5..3061e5a7 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthController.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthController.kt @@ -30,7 +30,9 @@ class DevAuthController( ?: userRepository.save(UserEntity("devUser", "Mock", "mock@abc.com", "0000-00000", Role.ROLE_STAFF)) val customPrincipal = CustomPrincipal(mockUser) val authenticationToken = UsernamePasswordAuthenticationToken( - customPrincipal, null, listOf( + customPrincipal, + null, + listOf( SimpleGrantedAuthority("ROLE_STAFF") ) ) diff --git a/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthenticationProvider.kt b/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthenticationProvider.kt index 54c2111f..cfdf0761 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthenticationProvider.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/common/mockauth/DevAuthenticationProvider.kt @@ -24,4 +24,3 @@ class DevAuthenticationProvider(private val userRepository: UserRepository) : Au return UsernamePasswordAuthenticationToken::class.java.isAssignableFrom(authentication) } } -