Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TIL 1월 24일

whipbaek edited this page Jan 24, 2023 · 12 revisions

김수찬 🤟

Facts

  • somthing..

Feeling

  • somthing..

Finding

  • somthing..

Future (Optional)



김현우 😀

Facts

  • somthing..

Feeling

  • somthing..

Finding

  • somthing..

Future (Optional)



박규현 🤑

Facts

  • somthing..

Feeling

  • somthing..

Finding

  • somthing..

Future (Optional)



백종인 🐭

Facts

  • Spring Security 관련 공부

Feeling

  • 진짜 노답이라 느꼈는데, 하나씩 뜯어서 찾아보다 보니 조금은 알겠다.
  • 아직 할 거 천지인데.. 여기에 시간이 이만큼 뺏기면 안되는데 걱정이 많다.

Finding

  • 관련 자료 : https://frogand.tistory.com/188 , https://mangkyu.tistory.com/76
  • In Spring Security
    • 인증(Authentication) : 해당 사용자가 본인이 맞는지를 확인하는 절차.
    • 인가(Authorization) : 인증된 사용자가 요청한 '특정 자원' 에 접근 가능한지를 결정하는 절차
    • Authentication 이 이루어지고 나서, Authorizatino이 이루어진다.

Spring Security Moudules

  • Authentication
    • 현재 접근하는 주체의 정보와 권한을 담은 인터페이스이다. Authentication 객체는 Security Context에 저장되며, SecurityContextHolder를 통하여 SecurityContext에 접근하고, SecurityContext를 통해 Authentication에 접근할 수 있다.
public interface Authentication extends Principal, Serializable {
 
 // 현재 사용자의 권한 목록을 가져옴
 Collection<? extends GrantedAuthority> getAuthorities();
 
 // credential(주로 비밀번호)을 가져옴
 Object getCredentials();
 
 Object getDetails();
 
 // Principal 객체를 가져옴
 Object getPrincipal();
 
 // 인증 여부를 가져옴
 boolean isAuthenticated();
 
 // 인증 여부를 설정함
 void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException;
}
  • SecurityContext
    • Authentication 객체를 보관하는 역할을 한다. SecurityContextHolder를 통해 Authenticatino 객체를 가져올 수 있다.
  • SecurityContextHolder
    • 보안 주체의 세부정부를 포함하여 응용프로개름의 현재 보안 컨텍스트에 대한 세부 정보가 저장된다. image
  • UsernamePasswordAuthenticationToken

Future (Optional)



허다은 🐣

Facts

  • somthing..

Feeling

  • somthing..

Finding

  • somthing..

Future (Optional)

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /