SpringBoot SAML SP Shibboleth IDP - PullRequest
       21

SpringBoot SAML SP Shibboleth IDP

0 голосов
/ 03 сентября 2018

Я пытаюсь подключиться и войти в систему testShib IDP с помощью этого Sp Mock проблема заключается в том, что когда я пытаюсь войти в систему без возможности подписать authnRequest, то я могу войдите, но я получаю сообщение об ошибке при перенаправлении.

     Caused by: java.security.InvalidKeyException: Unwrapping failed
        at com.sun.crypto.provider.RSACipher.engineUnwrap(RSACipher.java:445)
        at javax.crypto.Cipher.unwrap(Cipher.java:2549)
        at org.apache.xml.security.encryption.XMLCipher.decryptKey(XMLCipher.java:1477)
        ... 70 common frames omitted
    Caused by: javax.crypto.BadPaddingException: Decryption error
        at sun.security.rsa.RSAPadding.unpadOAEP(RSAPadding.java:502)
        at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:296)
        at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:363)
        at com.sun.crypto.provider.RSACipher.engineUnwrap(RSACipher.java:440)
        ... 72 common frames omitted
 DEBUG o.opensaml.xml.encryption.Decrypter - Attempt to decrypt EncryptedKey using credential from KEK KeyInfo resolver failed: 
    org.opensaml.xml.encryption.DecryptionException: Error decrypting encrypted key
        ERROR o.o.saml2.encryption.Decrypter - SAML Decrypter encountered an error decrypting element content 
        org.opensaml.xml.encryption.DecryptionException: Failed to decrypt EncryptedData

Если я попытаюсь с опцией подписать authnRequest, я получаю сообщение об ошибке в idp

 WARN [edu.internet2.middleware.shibboleth.idp.profile.saml2.SSOProfileHandler:406] - Message did not meet security requirements
    org.opensaml.ws.security.SecurityPolicyException: Validation of protocol message signature failed

Что я делаю не так, я новичок в SAML, поэтому я не очень знаком с этим

...