728x90
๋ฐ์ํ
https://velog.io/@da_na/OAuth2-๊ตฌ๊ธ-๋ก๊ทธ์ธ-์ฐ๋-์๋ฌ-ํด๊ฒฐ์ฑ
์ก์ธ์ค ์ฐจ๋จ๋จ
OAuth ๊ตฌ๊ธ ๋ก๊ทธ์ธ ์ค์ ํ ๋ก๊ทธ์ธ์ ํด๋ณด๋ ค๊ณ ํ๋๋ ์์ ๊ฐ์ ๋ก๊ทธ์ธ ๋ถ๊ฐ ํ๋ฉด์ด ๋์๋ค.
์ค๋ฅ 400: redirect_uri_mismatch
https://console.cloud.google.com/apis/dashboard
๊ตฌ๊ธ ์ฝ์ ๋์ฌ๋ณด๋ ํ์ด์ง๋ฅด ๋ค์ด๊ฐ ์๋ ๋ด์ฉ์ ํ์ธํด๋ณด๋๋ก ํ๋ค.
API ๋ฐ ์๋น์ค → ์ฌ์ฉ์ ์ธ์ฆ์ ๋ณด → OAuth ํด๋ผ์ด์ธํธ ์์ → ์น์ธ๋ ๋ฆฌ๋๋ ์
URI
spring:
security:
oauth2:
client:
registration:
google:
client-id:
client-secret:
redirect-uri: http://localhost/8080/login/oauth2/code/google
scope:
- email
- profile
redirect-uri: http://localhost/8080/login/oauth2/code/google
๋ถ๋ถ์ ์ถ๊ฐํด์ฃผ์๋ค.
https://velog.io/@da_na/OAuth2-๊ตฌ๊ธ-๋ก๊ทธ์ธ-์ฐ๋-์๋ฌ-ํด๊ฒฐ์ฑ
https://nyximos.tistory.com/117
๋ฐ์ํ
'์๋ฌ๋ชจ์์ง' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
aws Elastic Beanstalk 502 Bad Gatway ํด๊ฒฐ๋ฐฉ๋ฒ (0) | 2024.09.27 |
---|---|
AWS CodeDeploy Error. CodeDeploy agent was not able to receive the lifecycle event. (0) | 2024.03.20 |
nGrinder, Connection is not completed until 10 sec ์๋ฌ (0) | 2024.03.02 |
jenkins ๋ก๊ทธ์ธ ๋น๋ฐ๋ฒํธ ์์ด๋ฒ๋ ธ์ ๋ ๋ก๊ทธ์ธ ํด๊ฒฐ๋ฐฉ๋ฒ (1) | 2024.03.02 |
error: maven ๊ธฐ๋ฐ spring SLF4J error (0) | 2023.12.27 |