-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat#11 #13
Conversation
- Spring Security μμ‘΄μ± μΆκ° - SecurityConfig μ€μ - User Entity
- UserController, UserService, UserRepository - (email, password, nickname) λΆν° μ체 νμκ°μ ꡬν
- jwt μμ‘΄μ± μΆκ° - accessToken, refreshTokenμ λν λ©μλ μΆκ°
- Login νν°/μλΉμ€ ꡬν - Login μ±κ³΅/μ€ν¨ νΈλ€λ¬ ꡬν - JWT μ€μ νμΌ μΆκ°
- PasswordEncoder μ€λ³΅ μ£Όμ ν΄κ²° - request.getRequestURL() -> request.getRequestURI() - νμκ°μ μ, ROLE μ€μ
- oauth μμ‘΄μ± μΆκ° - application-oauth.yml μΆκ°
- CustomOAuth2UserService - GoogleOAuth2UserInfo
- SecurityConfig OAuth2 μΆκ° - application μμ
- @transaction μμ΄ λ³κ²½ κ°μ§κ° μΌμ΄λμ§ μμ.
- Get /jwt-test ν μ€νΈ - casting User to UserDetails λ²κ·Έ μμ
- μμ λ‘κ·ΈμΈ μ΄ν μΆκ°λ‘ μ λ ₯ν μ λ³΄κ° μμ΄ ROLEμ USERλ‘ μ€μ
- μ΄μ μλ λλ―Έ μ μ λ₯Ό λ°νμΌλ‘ μ±λ APIκ° λμνλλΌλ©΄, - μ€μ λ‘ μΈμ¦/μΈκ° μ μ°¨ μ΄ν λμν μ μλλ‘ μμ - CORS λ¬Έμ ν΄κ²°
/** | ||
* AccessToken μμ± λ©μλ | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ν¨μλͺ μ΄ μΆ©λΆν μ§κ΄μ μ΄λΌ μ£Όμμ΄ μμ΄λ λμ§ μμκΉμ© ??
.../src/main/java/devteamOne/classmate/global/jwt/filter/JwtAuthenticationProcessingFilter.java
Show resolved
Hide resolved
|
||
password.append(charSet[index]); | ||
} | ||
System.out.println(password); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μμ ν΄λ λλ λΌμΈμΈ κ² κ°μμ©
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
κ·Έλ λ€μ!! μμ νκ² μ΅λλ€!!
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' | ||
}; | ||
|
||
StringBuffer password = new StringBuffer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λ©ν° μ€λ λ νκ²½μ λκΈ°νλ₯Ό κ³ λ €ν΄μ StringBuilderλμ StringBuffer μ¬μ©νμ 건κ°μ©?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λ€! μμ λ‘κ·ΈμΈ μ λλ€λ λΉλ°λ²νΈλ₯Ό λ§λ€μ΄μ£Όλ λ©μλμ΄κΈ° λλ¬Έμ, λ©ν° μ°λ λ νκ²½μ κ³ λ €νμ¬ StringBufferλ₯Ό μ¬μ©νμμ΅λλ€.
if (!channel.getUser().getEmail().equals(email)) { | ||
throw new UserHasNotPermission(); | ||
} | ||
|
||
// User κΆν μ²΄ν¬ | ||
channelRepository.delete(channel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soft deleteμ λν΄ κ°μ΄ μκΈ°ν΄λ³΄λ©΄ μ’μ κ² κ°μμ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ§λΉν μ견μ
λλ€.
soft deleteλ₯Ό ν΅ν΄μ μμ λ λ°μ΄ν°λ μ μ§ν΄λλ κ²λ λ§€μ° μ€μνλ€κ³ μκ°ν©λλ€.
λ°±μλ νμμ΄λ μκΈ°ν΄μ λ³κ²½ν΄λ³΄κ² μ΅λλ€.
@@ -0,0 +1,5 @@ | |||
package devteamOne.classmate.user.domain; | |||
|
|||
public enum SocialType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
νμ₯μ±μ λν΄ κ°μ΄ μκΈ°ν΄λ³΄λ©΄ μ’μ κ² κ°μμ
π‘Β μ PRμ νμ ¨λμ?
resolve #12
π§βπ»Β μμ μ¬ν
πΒ λ§ν¬
π°Β μκΈν μ λ
πΒ μ°Έκ³ μ¬ν