SAML 플러그인이 AzureAD와 함께 정상적으로 작동하고 있었지만, 어제 최신 커밋으로 업그레이드한 이후로 사용자가 SAML을 통해 인증을 시도할 때 다음과 같은 오류가 발생하기 시작했습니다:
Sign in
Sorry, but we’re having trouble signing you in.
AADSTS7500525: There was an XML error in the SAML message at line 1, position 1. Verify that the XML content of the SAML messages conforms to the SAML protocol specifications.
디스코urs의 로그에서도 무언가를 찾아보려 했지만, 오류가 Azure 측에서 발생하기 때문에 거기서 오류 메시지를 찾지 못했습니다.
production.log에서는 로그인 프로세스가 여기서 멈춥니다 (아마도 Azure에서 반환을 기다리고 있는 것 같습니다):
Processing by StaticController#show as HTML
Parameters: {“id”=>“login”}
Rendered static/login.html.erb (Duration: 17.5ms | Allocations: 1440)
Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.0ms | Allocations: 2104)
Started GET “/session/csrf” for <> at 2021-12-14 18:28:16 -0300
Processing by SessionController#csrf as JSON
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 337)
Started POST “/auth/saml” for <> at 2021-12-14 18:28:16 -0300
(saml) Setup endpoint detected, running now.
(saml) Request phase initiated.
Azure를 담당하는 팀은 수신 중인 XML을 가져오려고 노력하고 있어, 그 안에서 뭔가 “다른” 점을 볼 수 있을지 확인해볼 수 있을 것입니다. 그들이 저에게 보내주면 알려드리겠습니다.