빠른 시작: Java 웹앱에 Microsoft로 로그인 추가 부분을 진행중인데 Bad Request가 발생했습니다.
Bukwon Kim
0
평판 포인트
여기서
'http://localhost:8443/msal4jsample' url에 접속하면
Bad Request
This combination of host and port requires TLS.
이 발생하더라구요. keystore는 발급받아 resources에 삽입했구요 아래는 제 properties 설정 파일입니다.
#AAD configuration
aad.clientId=d8e85ddb-efea-4354-8d87-ccdaf81e2cde
aad.authority=https://login.microsoftonline.com/8cacd2c3-2773-4db5-bbd3-9af6011dda85/
aad.secretKey=SKu8Q~8Q8WSNtK8-wBsmqUh-Wg1eJDCwKUbp5cpM
aad.redirectUriSignin=https://localhost:8443/msal4jsample/secure/aad
aad.redirectUriGraph=https://localhost:8443/msal4jsample/graph/me
aad.msGraphEndpointHost=https://graph.microsoft.com/
#SSL configuration
server.port=8443
server.servlet.session.cookie.secure=true
server.ssl.key-store=classpath:keystore.p12
server.ssl.key-store-password=My_Password
server.ssl.key-store-type=PKCS12
server.ssl.key-alias=testCert
무슨 이유 때문에 400에러가 발생하는 건가요? 그리고 추가로 Tomcat 파일이('tomcat/conf/server.xml') 없어 gpt에 질문하니 yml에 설정하면 된다 하더라구요. 이에 대한 추가 설명도 필요합니다.