Spring/study for project

스프링 시큐리티 관련

melitina 2024. 1. 8. 18:19

https://getinthere.tistory.com/15

 

스프링부트 with JPA 블로그 1강 - 환경세팅

1. Oracle JDK 1.8 설치 https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html Java SE Development Kit 8 - Downloads Java SE Development Kit 8 Downloads Thank you for downloading this release of the Java™ Platform, Standard Edition D

getinthere.tistory.com

 

https://0pen3r.tistory.com/342

 

MySQL 설치, 마이에스큐엘/MySQL developer default 없을 경우, 해결방법

개발 강의 따라 mysql 설치하다보면 developer default 옵션이 없는 경우가 있다. 해결방법 Custom으로 맞춰주지말고, 쿨하게 Full로 설치하자 ​ 패스워드 등록, 계정도 하나 생성해주고 설치 끝

0pen3r.tistory.com

 

 

 

https://github.com/codingspecialist/Sringboot-Security-Basic-V1

 

GitHub - codingspecialist/Sringboot-Security-Basic-V1: 스프링 시큐리티 인증, 권한 체크 완료 (JPA, mustache 적용

스프링 시큐리티 인증, 권한 체크 완료 (JPA, mustache 적용). Contribute to codingspecialist/Sringboot-Security-Basic-V1 development by creating an account on GitHub.

github.com

 

https://github.com/codingspecialist/Springboot-Security-OAuth2.0-V2/tree/master

 

GitHub - codingspecialist/Springboot-Security-OAuth2.0-V2

Contribute to codingspecialist/Springboot-Security-OAuth2.0-V2 development by creating an account on GitHub.

github.com

 

https://github.com/codingspecialist/-Springboot-Security-OAuth2.0-V3/tree/master

 

GitHub - codingspecialist/-Springboot-Security-OAuth2.0-V3: 최신버전 업그레이드

최신버전 업그레이드. Contribute to codingspecialist/-Springboot-Security-OAuth2.0-V3 development by creating an account on GitHub.

github.com

 

 

 

 

 

 

 

https://sennieworld.tistory.com/109

 

[🫥 오류 해결] WebSecurityConfigurerAdapter, authorizeRequest() deprecated

Spring Security 공부를 하다가 오류가 발생했다. 강의에서는 잘 되던 인터페이스 상속이 되지 않는 문제... 찾아보니 이제 지원이 안되고 @Bean 으로 생성해서 써야 한다고 한다. @Configuration @EnableWebSec

sennieworld.tistory.com

 

https://dmaolon00.tistory.com/entry/authorizeRequests-is-deprecated-%ED%95%B4%EA%B2%B0-Spring-Security-Configuration

 

'authorizeRequests()' is deprecated 해결 || Spring Security Configuration

기존에 사용해오던 방식대로 SecurityConfig를 만들어서 403 Error를 해결하고자 하였는데, authorizeRequests()가 deprecated 되었다고 한다. WebSecurityConfigurerAdapter도 deprecate되어 빈을 등록하는 방식으로 바꿔

dmaolon00.tistory.com

 

https://velog.io/@woosim34/Spring-Security-6.1.0%EC%97%90%EC%84%9C-is-deprecated-and-marked-for-removal-%EC%98%A4%EB%A5%98

 

Spring Security 6.1.0에서 is deprecated and marked for removal 오류

Spring Security 6에서 websecurityconfigureradapter가 deprecated가 되고 SecurityFilterChain bean을 생성하도록 변경되어 Spring Security 6.0.2에서 새로 작성해보며 공부하였었습니다. 6.0.2

velog.io

 

 

 

 

승인된 리디렉션 URI는 구글 로그인 완료가 되면

구글 서버에서는 우리쪽으로 인증되었다는 코드를 돌려준다.

우리는 이 코드를 받아서 다시 해당 코드를 통해서 access token을 요청한다.

이 access token을 받아서 이 access token으로

우리가 사용자 대신 서버가 구글 서버에 사용자의 개인정보 혹은 민감한 정보에

접근할 수 있는 권한이 생긴다.

이 access token을 얻기 위해 필요한 것이 코드인데,

이 코드를 받을 수 있는 주소를 승인된 리디렉션 URI에 적는 것이다.

승인된 리디렉션 URI에서 /login/oauth2/는 고정되어 있다.

그리고 우리는 이에 대한 Controller를 IndexController에 만들 필요가 없다.

OAuth 클라이언트가 생성되면 클라이언트 ID와 클라이언트 보안 비밀번호를 받게 된다.

 

https://mvnrepository.com/

 

https://spring.io/guides/tutorials/spring-boot-oauth2/

 

Getting Started | Spring Boot and OAuth2

In this section, we modify the click app we built by adding a button that allows the user to log out of the app. This seems like a simple feature, but it requires a bit of care to implement, so it’s worth spending some time discussing exactly how to do i

spring.io