saml-2.0

SAML 2.0 - How to verify the sender certificate?

五迷三道 提交于 2019-12-09 22:20:20
问题 I implement a SAML SP in Java. I send an AuthnRequest to SAML 2.0 IDP and gets an encrypted response. My question is: How do I make sure that the response indeed comes from the IDP and not from a hacker? It is not enough to validate the signature, since this only tells me that the sender has a matching pair of private/public keys, but it could be anyone. So, I need the IDP to supply me in advance a certificate which I upload to a jks file, and compare it each time to the certificate I extract

Session termination in single logout using SAML

假如想象 提交于 2019-12-09 20:16:32
问题 Let us say we have a user who is accessing three different services using Single sign-on . On clicking on Logout the session with current Sp can be identified and terminated. Here on, it is the responsibility of IdP to log the user out from the other two services. My question is how the sessions with the remaining two services will be obtained and terminated? 回答1: The Idp send the other two SPs a LogoutRequest with the sessionIndex of the user to be logged out. The SPs are then responsible to

How to add new idp metadata in spring-SAML at runtime

妖精的绣舞 提交于 2019-12-09 16:45:42
问题 I am integrating spring-security-saml extension to support SSO in my web-application, my application should allow different customers to add their IDP metadata and their certificate to my webapp (which is an SP) so that my webapp can initiate SSO against their idp. Right now I am defining a "metadata" bean in my java config where in I add the idp metadata to CachingMetadataManager. But this happens only once, I am not able to figure out how do I add a new idp metadata to MetadataManager at

Which public key (SP or remote IDP) to use while signing SAML request

六月ゝ 毕业季﹏ 提交于 2019-12-09 13:15:56
问题 I am trying to configure my application (SP) to work with remote IDP. The IDP provided me with a certificate to configure with SP. For SAML request, do I use SP's public key or IDP's? Also, where can I find good resources to study SAML in detail (apart from the oasis formal documents). The tutorials that I find are very simplistic (i.e. they just describe that SP goes to IDP and then it is redirected back but do not go into detail on SAML messages). The oasis documents are confusing. Thanks

spring saml: How is LOGOUT handled? Is it mandatory to have logout endpoint in IDP metadata xml?

帅比萌擦擦* 提交于 2019-12-08 19:07:09
问题 I am using Spring SAML implementation. SSO circle metadata xml was having logout endpoint which helps in local logout and global logout. But there are some other IDP's which I am interacting with and are not having logout endpoints in their metadata xml. How should LOGOUT be handled in these scenarios? Is deleting cookies of the request the only solution of this problem or is there any workaround for this scenario? Your help in this regard is much appreciated. 回答1: It is not mandatory for

Spring Security and nested FilterChainProxy writing SAML Service Provider

▼魔方 西西 提交于 2019-12-08 17:24:34
问题 I am trying to figure out a problem involving Spring Security and SAML. We are trying to use Spring Security (spring-security-core-3.1.1.RELEASE.jar) and SAML (spring-security-saml2-core-1.0.0-RC1-SNAPSHOT.jar) to modify our product to be a SAML SP. EDIT: Here is the (I think!) relevant section of my security-related context xml. As you can see, it's almost identical to this sample XML. <!-- Entry point to initialize authentication, default values taken from properties file --> <bean id=

How to get SAML2 Bearer Assertion profile for OAuth within WSO2 API Manager to work?

浪子不回头ぞ 提交于 2019-12-08 13:37:39
I have problems getting work "SAML2 Bearer Assertion profile for Oauth" within WSO2 API Manager. I'm trying to apply "Johann's Wall" How-to on API Manager (ver. 1.5) but running in the following error. [2013-11-08 17:44:35,930] DEBUG - SAML2BearerGrantTypeHandler SAML Assertion Audience Restriction validation failed [2013-11-08 17:44:36,024] DEBUG - AccessTokenIssuer Invalid Grant provided by the client, id=enfKWsilmCxdIwhYiINcoA2JKwka, user-name=admin to application=MyFlowChart [2013-11-08 17:44:36,025] DEBUG - AccessTokenIssuer OAuth-Error-Code=invalid_grant client-id

SAML with ADFS for angularjs+java+jetty webapp

谁说胖子不能爱 提交于 2019-12-08 11:37:27
问题 I am working on a webapp, the Front-end is implemented in AngularJS which talks to back-end server by invoking REST API. The back-end is Java REST Server implemented using reslet framework deployed in Jetty. Currently, when a user logs into a web app, a REST API is invoked which then goes to the Java REST server. The server then authenticates the user. I want to implement SSO using SAML. So when a corporate user tries to login to the app, the user must be redirected to ADFS. If the user is

Configure Shibboleth native Service Provider and Apache

穿精又带淫゛_ 提交于 2019-12-08 11:31:29
问题 I have a simple web application. I want to set Shibboleth native SP in front of my web app so that it issues/asserts SAML related things and forwards request to my web app. Is there a complete tutorial how to achieve that? 回答1: Use testshib to test your app, it gives too much ease. Follow the steps download and instal sp on your machine include shibboleth's configuration into your apache 2.1. into httpd.conf file add include "PATH/opt/path/etc/apache22"(if version is apache2.2, otherwise

How to resolve org.springframework.web.util.NestedServletException: Request processing failed; with SAML

自古美人都是妖i 提交于 2019-12-08 11:14:33
问题 I am developing an application which is authenticating via IDP which ins ADFS server. So it has some functionality to import IDP metadata from the program level by accessing metadata URL (given below) and update according to the service provider side. I am experiencing request processing exception when trying to process SAML metadata from the ADFS server URL. some solutions that I found says it is problem in wildfly8 , and fine with Wildfly 7+ and JBoss 7+ , but still I am having the same