spring-saml

Can Spring security SAML be used to configure IDPs at Runtime

时间秒杀一切 提交于 2019-12-01 11:18:36
问题 I'ld like to implement SSO using SAML 2.0 in my web applications. I have seen spring-security-saml and example of spring boot application. There are a couple of things I wanted to know after I went through the sample: Is it possible to take Idp Url and certificates at run time and use spring saml to validate against that Idp ? ( So essentially I do not want to predefine any of the Idp related details and take an input from admin user to configure Idp ) Is metadata of Idp a necessary field or

Spring SAML - Reading and refreshing IdP metadata at runtime

自闭症网瘾萝莉.ら 提交于 2019-11-30 16:22:32
问题 I am using WSO2 and SSOCircle with the Spring-SAML extension. We are testing configurations at this time and have defined 2 IdP's and 2 SP's within our applicationContext. So, currently, we have 2 statically defined IdP's within our spring xml config and this is working. For testing purpose we are using the combination of CachingMetadataManager and ResourceBackedMetadataProvider so the IdP metadata is built inside of our WAR archive. Sample: <bean id="metadata" class="org.springframework

“HTTP Status 401 - Authentication Failed: Incoming SAML message is invalid” with Salesforce as IdP for implementating SSO

痞子三分冷 提交于 2019-11-30 09:08:57
I've implemented SSO using Spring SAML and everything is working fine. It worked with the following IDP's till now: 1) idp.ssocircle.com 2) openidp.feide.no Now I'm testing with salesforce.com as my Identity Provider. As there is no provision to upload Service Provider Metadata I've done the following configuration settings at its IdP: Gave my entityID and Assertion Consumer Service URL. I also uploaded my SP certificate. I've downloaded its metadata (idp metadata) which is as follows (hiding the sensitive information): <?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor xmlns:md="urn

Signature trust establishment failed for SAML metadata entry

老子叫甜甜 提交于 2019-11-30 06:54:36
In order to fetch metadata from a remote source, I defined an ExtendedMetadataDelegate bean as follows: @Bean @Qualifier("replyMeta") public ExtendedMetadataDelegate replyMetadataProvider() throws MetadataProviderException { String metadataURL = "https://ststest-replynet.reply.it/FederationMetadata/2007-06/FederationMetadata.xml"; final Timer backgroundTaskTimer = new Timer(true); HTTPMetadataProvider provider = new HTTPMetadataProvider( backgroundTaskTimer, httpClient(), metadataURL); provider.setParserPool(parserPool()); ExtendedMetadataDelegate emd = new ExtendedMetadataDelegate( provider,

Add request parameter to SAML request using Spring Security SAML

删除回忆录丶 提交于 2019-11-29 08:12:43
I need to add a request parameter (e.g. locale=en) to the SAML request in order to let the login page display correct language. How do I do that? I tried to add the attribute to the HttpServletRequest sent as an argument to the commence method (SamlEntryPoint), but that doesn't seem to work. Any suggestions? SAML provides a standard mechanism for extending content sent in authentication requests - an Extensions element. In order to use it you will need to coordinate with your IDP on what data you send and in what format. In Spring SAML you can customize its content by extending class

Spring SAML integration with WSO2 Identity server, SAML Message ID not reconised

我与影子孤独终老i 提交于 2019-11-29 04:33:50
I have taken the Spring SAML example (see section 4.2 in this guide ) which works with the Open source login page SSO, and tried to add support to use WSO2 Identity Server as an additional IDP service. To do this I changed the spring SAML sample project by adding a metadata xml file for IS, and added an entry for the IS metadata to the securityContext.xml. On running the spring application I now get presented with an option to login using IS, and I can successfully login in on WSO2 when I'm redirected to it. However the spring application throws an exception on the IS SAML response about it

trusted certificate entries are not password-protected Spring SAML

可紊 提交于 2019-11-29 03:29:38
I have generated testIdp.cer file by copying 509 entry of the IDP I am planning to connect. Then I created JKS file by executing the following command keytool -importcert -alias adfssigning -keystore C:\Users\user\Desktop\samlKeystore.jks -file C:\Users\user\Desktop\testIdp.cer When executed it has asked to enter a password for which I have given a password. For the question "Trust this certificate? [no]:", I have given "y" as input. Message came out as "Certificate was added to keystore". Then I have configured the following details in securityContext.xml <bean id="keyManager" class="org

Setting the ExtendedMetadata 'signingAlgorithm' field

血红的双手。 提交于 2019-11-28 23:38:30
I'm having an issue getting the Spring SAML integration to generate the correct metadata file for my IdP. I was issued new SHA256 SSL certs. I've gone through all of the steps to create the appropriate keyStore and have my Spring security configuration file all set. I am literally like 98% of the way there but there is one thing missing in the generated metadata file that I can't for the life of me figure out why it's not getting set. Here is my ExtendedMetadata config for MetadataGeneratorFilter: <bean id="metadataGeneratorFilter" class="org.springframework.security.saml.metadata

Spring SAML extension for multiple IDP'S

ε祈祈猫儿з 提交于 2019-11-28 05:22:57
问题 we are planning to use spring saml extension as SP into our application. But the requirement with our application is we need to communicate with more than 1 IDP's Could any one please provide me/direct me to the example where it uses multiple IDP's I also would like to know spring saml extension supports what kind of IDPS like OPenAM/Ping federate/ADFs2.0 etc... Thanks, --Vikas 回答1: You can find all answers to your question in the Spring SAML manual. The sample application which is included

Single Sign-On in Spring by using SAML Extension and Shibboleth

会有一股神秘感。 提交于 2019-11-28 05:00:49
I'd like to implement a Single Sign-on (SSO) authentication layer in my Spring-based application with the aim of supporting authentication and authorization from different security domains. I've chosen Shibboleth as IdP, but I have yet to identify what I will use for the SP. The choices are: Spring Security SAML Extension: component enables both new and existing applications to act as a Service Provider in federations based on SAML 2.0 protocol and enable Web Single Sign-On. Spring Security Extension allows seamless combination of SAML 2.0 and other authentication and federation mechanisms in