Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 롬복
- golang
- Python
- Vue.js
- H2 설치
- 객사오
- 오블완
- 클린 코드
- spring security
- Spring Boot
- Postman
- mariadb
- GitHub
- 파이썬
- thymeleaf
- Gradle
- MySQL
- 티스토리챌린지
- 알고리즘
- go
- java
- Spring
- 기초100제
- 스프링
- Git
- 코드업
- JPA
- Codeup
- springboot
- 클린코드
Archives
- Today
- Total
nyximos.log
[Spring Security] OAuth 구글 로그인 액세스 차단됨 400 오류: redirect_uri_mismatch 본문
ETC/피땀눈물
[Spring Security] OAuth 구글 로그인 액세스 차단됨 400 오류: redirect_uri_mismatch
nyximos 2022. 10. 3. 17:53구글 로그인 버튼 누를시 redirect_uri_mismatch 에러가 발생한다.
API 및 서비스 → 사용자 인증정보 → OAuth 클라이언트 수정 → 승인된 리디렉션 URI
https://console.cloud.google.com/apis/
아래 URI를 application.yml 파일의 redirect-uri에 입력해준다.
application.yml
spring:
security:
oauth2:
client:
registration:
google: # /oauth2/authorization/google 이 주소를 동작하게 한다.
client-id:
client-secret:
redirect-uri: http://localhost:8086/login/oauth2/code/google
scope:
- email
- profile