spring-saml

java.io.IOException: Invalid keystore format Spring Security SAML Extension

半腔热情 提交于 2019-12-07 06:08:50
问题 I have successfully gotten the Spring Security SAML Extension sample application to run. Now, I'm trying to integrate it into my main application. Before I tried to integrate with my application, I created a sample application to integrate it with and it works fine. In my sample application, I used the keystore from downloaded sample application. Now, I'm trying to use the same keystore and I'm getting the following error: Caused by: org.springframework.beans.factory.BeanCreationException:

Getting error while decryptition of Saml token

会有一股神秘感。 提交于 2019-12-07 02:47:01
问题 I am getting error while decryption of saml token. However this issue is not consistent it works after restarting server. It was working properly till last night :( DEBUG Decrypter:631 - Attempt to decrypt EncryptedKey using credential from KEK KeyInfo resolver failed: org.opensaml.xml.encryption.DecryptionException: Probable runtime exception on decryption:unknown parameter type. at org.opensaml.xml.encryption.Decrypter.decryptKey(Decrypter.java:705) at org.opensaml.xml.encryption.Decrypter

How can I force spring-saml-extension to re-authenticate everytime?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 15:41:33
I recently ran successfully the spring-saml-sample working with ADFS 2.0. However I noticed that ADFS only ask me once my user/pass, and then I can enter as many times I want but always with the same user (even when I did a global logout). Is seems there is a cookie or something stored locally that is sent to ADFS. What if I want to authenticate with a different user on the same machine? How can I configure saml-extension in order to force authentication again? SAML contains a mechanism for forcing IDP to re-authenticate user called forced authentication. You can enable it by setting flag

Spring SAML handshake failure - Failed to validate untrusted credential against trusted key

筅森魡賤 提交于 2019-12-06 11:12:59
I'm using Spring Security SAML extension for integrating with the ACA healthcare (aka Obamacare) website. It uses IDP Initiated SSO. The SAML handshake fails with the following output org.opensaml.xml.security.keyinfo.provider.InlineX509DataProvider] Single certificate was present, treating as end-entity certificate org.opensaml.xml.security.keyinfo.BasicProviderKeyInfoCredentialResolver] Credentials successfully extracted from child {http://www.w3.org/2000/09/xmldsig#}X509Data by provider org.opensaml.xml.security.keyinfo.provider.InlineX509DataProvider org.opensaml.xml.security.keyinfo

Configuring Ping Federate and Spring SAML to authenticate application

依然范特西╮ 提交于 2019-12-06 09:12:31
问题 I installed PingFederate on an AWS EC2 running Windows_Server-2008-R2_SP1-English-64Bit-Base-2014.04.09. I have a Java application that is using Spring Security for authentication. I have read about how with PingFederate, I can set up an Identity Provider(IdP) and a Service Provider(SP). I have gathered that the IdP would be the Application User providing login credentials(the Identity) and passing this to the SP which has the Target Application apart of the SP in this diagram on this page

Spring Security SAML Metadata URL on Tomcat

拈花ヽ惹草 提交于 2019-12-06 07:26:54
I'm working on an java-based web application, implementing SSO using Spring Security SAML on a Tomcat server. This application would play the service provider role (SP). The default Spring URL to retrieve this SP's metadata is: https://www.server.com:8080/context/saml/metadata This works just fine, returning the metadata XML file as expected. However, I run into a problem when I add a DefaultServlet servlet-mappings to the web.xml. Even just something as basic as: <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.gif</url-pattern> </servlet-mapping> If one or more default

Can I get saml-token as string?

不羁岁月 提交于 2019-12-06 05:48:25
I am using spring-security-saml2 1.0.0.RELEASE. It works well and pretty good for me. But New requirement is rised. I need saml-token as string. can I get the saml-token as string. I find saml-token in log. But how to get the saml-token as string format? Good question, I've just added a new chapter to the Spring SAML manual which addresses this issue: Authentication assertion Assertion used to authenticate user is stored in the SAMLCredential object under property authenticationAssertion . By default the original content (DOM) of the assertion is discarded and system only keeps an unmarshalled

SAMLException: NameID element must be present as part of the Subject in the Response message, please enable it in the IDP configuration

你离开我真会死。 提交于 2019-12-06 05:23:31
问题 Iam using spring-saml implementation. In the class WebSSOProfileConsumerImpl, I could find the following lines of code which checks for nameId in the assertion of the SAML response . NameID nameID; if (subject.getEncryptedID() != null) { Assert.notNull(context.getLocalDecrypter(), "Can't decrypt NameID, no decrypter is set in the context"); nameID = (NameID) context.getLocalDecrypter().decrypt(subject.getEncryptedID()); } else { nameID = subject.getNameID(); } Based on the code, its clear

Configure POST ProtocolBinding in Spring Security SAML authentication request

我是研究僧i 提交于 2019-12-06 02:53:35
问题 Spring Security SAML insists on requesting the Artifact binding in the SAML authentication request (ProtocolBinding attribute): <saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="http://sp.com/saml/SSO/alias/defaultAlias" Destination="https://idp.com/idp" ForceAuthn="false" ID="a4acj06d42fdc0d3494h859g3f7005c" IsPassive="false" IssueInstant="2012-12-05T17:07:18.271Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Version

How to do something after the login with Spring Security?

北慕城南 提交于 2019-12-05 18:49:40
I have a Spring web application which uses Spring SAML and Spring Security to manage the login process. Now I need to do some tasks after the correct login occurs. In particular I have to store some data in the SecurityContext.getContext() object. I have never worked with Spring Security/SAML and I don't know how it manages the return from the IdP. Is there any place in the code where usually you can put your code after the login process ends correctly? I mean, I know where the redirect page is set but I cannot put my custom code in the Controller of this redirect page because that page is