SSO

SAML Response Login Fail(599) 에러...

fasdfasdfasd_cfeb14

2024.04.09읽음 594

아... 지금 SAML IDP 방식으로 Naver Works 에서 SAML Request 가 우리 내부 인증 서버쪽으로 들어올때 SAML Response를 만들어서 전달 시 오류가 자꾸 나네요...

Signature관련한 부분도 Private Key를 PEM으로 변경해서 등록도 해서 진행도 해보고... 키스토어에서 직접 CER 파일도 만들어서 PEM으로 파일 명 변경 후 등록해서 진행해보고...
하지만!!!
Subject 하위 노드에 NAME ID가 들어가기만 하면 자꾸 SAML Response Login Fail(599)로 오류가 나는데... 이 오류가 어떤식으로 나는지도... 알 수 있는 방법이 없어서 너무 힘드네요...
NAME ID가 External Key로 등록하라고 되어있는데... 그걸로도 해보고 Email로도 해보고...
분명 SAML IDP가이드대로 모든걸 맞춰서 해봤는데... 자꾸 똑같은 에러가 나네요...
혹시 아시는 분 있을까요?
SAML Response XML 내용 : 
<?xml version="1.0" encoding="UTF-8"?><saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" Destination="https://auth.worksmobile.com/acs/clive-translate.co.kr" ID="a5a1f93796604e818b18106cf75ad390" InResponseTo="gdafgjeeiahklophbanbhkjompdmofaokegojffn" IssueInstant="2024-04-09T11:41:19.890Z" Version="2.0">
   <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
       
       <ds:SignedInfo>
           
           <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
           
           <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
           
           <ds:Reference URI="#a5a1f93796604e818b18106cf75ad390">
               
               <ds:Transforms>
                   
                   <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
                   
                   <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                   
               </ds:Transforms>
               
               <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
               
               <ds:DigestValue>K6OC6nPgDs6P5C94iUk4TSwoLXgWnh77LSL92DYmNJ0=</ds:DigestValue>
               
           </ds:Reference>
           
       </ds:SignedInfo>
       
       <ds:SignatureValue>
S3AiYI/yIbGPTcRNMKPu1EU3E8rtZKvimzD/T/FJAuwEuFwYtVFFpfjIhWX11KiMvxf0p/kthqai&#13;
jPMqGZcEvBVOeEw7RVcdV56zOesPIq1OiRzsxrTCJv681zbfn/IQrfXrLz66yDt0/IUTX8KbmWC0&#13;
IDpJt1HW8eBSF86wgkk=
</ds:SignatureValue>
       
   </ds:Signature>
   <saml2p:Status>
       <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:AuthnFailed"/>
   </saml2p:Status>
   <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="38553347452648518a514992a682f447" IssueInstant="2024-04-09T11:41:19.890Z" Version="2.0">
       <saml2:Subject>
           <saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">AAAA</saml2:NameID>
           <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
               <saml2:SubjectConfirmationData InResponseTo="gdafgjeeiahklophbanbhkjompdmofaokegojffn" NotOnOrAfter="2024-04-09T11:46:19.890Z" Recipient="https://auth.worksmobile.com/acs/clive-translate.co.kr"/>
           </saml2:SubjectConfirmation>
       </saml2:Subject>
       <saml2:Conditions NotBefore="2024-04-09T11:41:19.890Z" NotOnOrAfter="2024-04-09T11:46:19.890Z">
           <saml2:AudienceRestriction>
               <saml2:Audience>https://auth.worksmobile.com/acs/clive-translate.co.kr</saml2:Audience>
           </saml2:AudienceRestriction>
       </saml2:Conditions>
       <saml2:AuthnStatement AuthnInstant="2024-04-09T11:41:19.890Z" SessionIndex="981d337f46114433b94788ba3f37f7c7" SessionNotOnOrAfter="2024-04-09T12:41:23.047Z"/>
   </saml2:Assertion>
</saml2p:Response>
인코딩한 SAML Reponse 내용 :
PD94bWwgdmVyc2lvbj0iMS4wIiBlb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NCiAgICAgICAgICAgIDxzYW1sMjpBdWRpZW5jZVJlc3RyaWN0aW9uPg0KICAgICAgICAgICAgICAgIDxzYW1sMjpBdWRpZW5jZT5odHRwczovL2F1dGgud29ya3Ntb2JpbGUuY29tL2Fjcy9jbGl2ZS10cmFuc2xhdGUuY28ua3I8L3NhbWwyOkF1ZGllbmNlPg0KICAgICAgICAgICAgPC9zYW1sMjpBdWRpZW5jZVJlc3RyaWN0aW9uPg0KICAgICAgICA8L3NhbWwyOkNvbmRpdGlvbnM+DQogICAgICAgIDxzYW1sMjpBdXRoblN0YXRlbWVudCBBdXRobkluc3RhbnQ9IjIwMjQtMDQtMDlUMTE6NDE6MTkuODkwWiIgU2Vzc2lvbkluZGV4PSI5ODFkMzM3ZjQ2MTE0NDMzYjk0Nzg4YmEzZjM3ZjdjNyIgU2Vzc2lvbk5vdE9uT3JBZnRlcj0iMjAyNC0wNC0wOVQxMjo0MToyMy4wNDdaIi8+DQogICAgPC9zYW1sMjpBc3NlcnRpb24+DQo8L3NhbWwycDpSZXNwb25zZT4NCg==

댓글1

이전 글NAVER WORKS 아이디로 로그인 (IdP) 사용시 네이버웍스앱의 로그인 정보
다음 글Bot Message Callback 은 어떤 Host가 요청하는지 알 고 싶습니다.
목록

궁금한 점을 해결하지 못하셨나요?
지금 바로 NAVER WORKS 사용자들에게 물어보세요!