saml-2.0

How to create a valid SAML 2.0 Assertion with OpenSAML library in Java

最后都变了- 提交于 2020-06-22 13:14:43
问题 I am new to the OAuth2 concepts, SAML assertion and OpenSAML library in Java. I need my Java code to create a saml 2.0 assertions (may be XML string) using OpenSAML library. How we can create it? Please share the code and XML SAML 2.0 assertion. 回答1: I had created the SAML 2.0 assertions in my code using OpenSAML library (http://mvnrepository.com/artifact/org.opensaml/opensaml). The XML O/P is also shown below. import java.util.HashMap; import java.util.Iterator; import java.util.Map; import

.net core and SAML 2.0

半城伤御伤魂 提交于 2020-06-22 10:37:07
问题 Our University has migrated to a SAML based authentication/authorization method using Shibboleth. I have been researching for at least a day on how to use SAML with .net core web applications. I can't use Identity server 4 because it is for OaTH/Open ID. I found some documentation on msdn which points to a commercial implementation. I came across this SO answer from a year ago saying Kentor may support it in the future but couldn't find anything on the github page about support for .net core

Combine database and SAML authentication in one application using spring security

送分小仙女□ 提交于 2020-04-30 07:11:20
问题 I am trying to implement authentication and authorization in the spring boot(2.2.4) app using spring security(spring-security-starter). Use Case: Based on the username I want to redirect the user for the specific authentication provider If username ends with 'mit.com' Authenticate User using database (I am using hibernate)- For this, I can use spring's UserDetailService If username ends with 'einfochips.com' Authenticate User using SAML 2.0 protocol- Using identity provider like Okta,

Direct login and federated login in salesforce

故事扮演 提交于 2020-03-26 12:50:01
问题 I configured salesforce for federated authentication. Great! I did? It is working fine for "identity provider initiated login" (see Federated authentication and Delegated authentication in salesforce). I am using a federated id. But my issue that that user can login directly to salesforce using his username and password? How can I disable it? The "service provider initiated login" says it will come to identity provider. It is not going to identity provider when I try to login using salesforce

SAML Request Attributes In AuthnRequest

久未见 提交于 2020-03-18 15:57:11
问题 I kind of understand how basic SAML authentication supposed to work: User request resource at SP SP sends auth request to IDP IDP authenticates user and sends back some userId SP sends attribute query to IDP for additional details with userId IDP sends back attributes SP gives user resource My issue is, can you any way bypass AttributeQuery. When I make a SAML 2.0 request to my testing Gluu/Shibboleth server, I get back givenName (firstname) and sn (lastname). Is there anyway I can request

SAML Request Attributes In AuthnRequest

拜拜、爱过 提交于 2020-03-18 15:56:22
问题 I kind of understand how basic SAML authentication supposed to work: User request resource at SP SP sends auth request to IDP IDP authenticates user and sends back some userId SP sends attribute query to IDP for additional details with userId IDP sends back attributes SP gives user resource My issue is, can you any way bypass AttributeQuery. When I make a SAML 2.0 request to my testing Gluu/Shibboleth server, I get back givenName (firstname) and sn (lastname). Is there anyway I can request

Spring SAML ADFS: java.security.InvalidKeyException

风格不统一 提交于 2020-02-20 10:29:05
问题 I have the task to implement a accessibility to an Active Directory Federation Services (SSL) with a LDAP behind. At first I have to to say that my experience in ADFS and SAML is very small. I have decide to take the Spring Security SAML Extension to implement this feature. I download and install the SAML extension for the Spring Security project from GIThub: https://github.com/spring-projects/spring-security-saml I found in the official documentation http://docs.spring.io/spring-security

Azure AD - SAML Single Logout - Unsupported binding HTTP-POST

空扰寡人 提交于 2020-02-14 22:41:13
问题 I am integrating a SAML Service Provider with MS AAD and I have found an issue with Single Logout. My Service Provider only supports logout binding "HTTP-POST". And it seems that AAD only supports logout binding "HTTP-Redirect". I think so based on the SAML metadata I got from AAD - this is the only SingleLogoutService element I can see: <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx

Python SAML OneLogin - How to support multiple Identity Providers

自古美人都是妖i 提交于 2020-02-02 05:47:12
问题 I'm relatively new to SAML and came across the OneLogin Python SAML library. I was able to get it up and running with my web app being the Service provider (SP) and OneLogin being the Identity Provider (Idp). I would like to be able to add support for other Identity Providers as well. However, I find that the python-saml library is using a settings.json to get the Idp information. I have looked at the following issues on their Github project but have been unable to get an actionable solution:

Generate custom attribute for one SP in a SAML 2.0 Federation - Identity

荒凉一梦 提交于 2020-01-24 22:42:08
问题 We have a SAML 2.0 federated environment (IDP and SP). I would like to generate a custom attribute for assertions created only for one SP. As such, I will not modify the IDP configuration. The snippet of the SAML Assertion we need to create: < saml:Attribute NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" > Name="urn:oasis:names:tc:SAML:2.0:profiles:attribute:DCE:groups" > < saml:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="xsd:string"> ABCD