다음을 통해 공유

빠른 시작: Java 웹앱에 Microsoft로 로그인 추가 부분을 진행중인데 Bad Request가 발생했습니다.

Bukwon Kim 0 평판 포인트
2024-10-18T01:26:38.49+00:00

현재 진행중인 url입니다. 'https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Quickstart/appId/d8e85ddb-efea-4354-8d87-ccdaf81e2cde/objectId/2be88434-d2e4-48e9-a60b-66236ac4501d/isMSAApp~/false/defaultBlade/Overview/appSignInAudience/AzureADMyOrg/servicePrincipalCreated~/true'

여기서
'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에 설정하면 된다 하더라구요. 이에 대한 추가 설명도 필요합니다.

비즈니스용 Windows | IT 전문가용 Windows 클라이언트 | 사용자 환경 | 기타
댓글 0개 설명 없음

답변 1개

정렬 기준: 가장 유용함
  1. 삭제됨

    이 답변은 당사의 사용 규정 위반으로 인해 삭제되었습니다. 작업을 수행하기 전에 자동화된 감지를 통해 답변이 수동으로 보고되거나 식별되었습니다. 자세한 내용은 사용 규정 을 참조하세요.


    댓글을 사용하지 않습니다. 자세한 정보

답변

질문 작성자는 답변을 '승인됨'으로 표시하고, 중재자는 답변을 '추천됨'으로 표시할 수 있습니다. 이를 통해 사용자는 해당 답변이 작성자의 문제를 해결했다는 것을 알 수 있습니다.