saml

authenticate to SharePoint through OKTA from back-end service

别说谁变了你拦得住时间么 提交于 2019-12-01 12:29:05
I have a need to programmatically connect to a customer's SharePoint server that uses OKTA for authentication. I saw this post which looked promising, but cannot seem to get a valid session cookie back from OKTA. I can successfully call the /api/v1/authn endpoint and get back a sessionToken, but when I turn around and call /api/v1/sessions?additionalFields=cookieToken with that session token, I always received a 403 - Forbidden, with the following json: { "errorCode": "E0000005", "errorSummary": "Invalid Session", "errorLink": "E0000005", "errorId": "oaew0udr2ElRfCnZvBFt075SA", "errorCauses":

Why is Cognito rejecting my SAML assertion?

一个人想着一个人 提交于 2019-12-01 12:20:55
I'm doing a proof of concept for federating SAML into Cognito. I've setup Shibboleth v3, and once I finally got the log level set, I can see the SAML being sent back to Cognito, which just redirects to my configured page with ?error_description=Error+in+SAML+response+processing%3A+Invalid+SAML+metadata.+&error=server_error in the URL. The user pool in Cognito is set to require an email address, and I think I've got the attribute mapping set correctly, but it's not really easy to tell. Here's the SAML I'm seeing in the logs (minus a couple of URLs for anonymization's sake): <?xml version="1.0"

SAML 2.0 - Multiple AssertionConsumerService in SP

冷暖自知 提交于 2019-12-01 12:19:08
I implement a SAML 2.0 SP. I have a login servlet with endpoint https://my.domain.com/mng/samlLogin , so in the SP metadata file I define: <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://my.domain.com/mng/samlLogin" index="0" isDefault="true"/> And send this endpoint in the AuthenRequest under the AssertionConsumerServiceURL. Now, I have another servlet with a different functionality, and it needs to validate the user against SAML as part of its flow. So I need to define the new servlet's URL as an additional endpoint, let's say https:/

authenticate to SharePoint through OKTA from back-end service

烈酒焚心 提交于 2019-12-01 10:37:58
问题 I have a need to programmatically connect to a customer's SharePoint server that uses OKTA for authentication. I saw this post which looked promising, but cannot seem to get a valid session cookie back from OKTA. I can successfully call the /api/v1/authn endpoint and get back a sessionToken, but when I turn around and call /api/v1/sessions?additionalFields=cookieToken with that session token, I always received a 403 - Forbidden, with the following json: { "errorCode": "E0000005",

Convert a SAML token to JWT

北城余情 提交于 2019-12-01 09:48:55
I am trying to connect to ACS using a SAML token, problem is ACS has been configured to only accept JWT tokens. What is the best way to convert SAML to JWT? thanks You should ask your IDP to provide the JWT token as a SAML attribute inside your current SAML tokens, or ask them to provide you with an alternative way of acquiring the JWT tokens you require. The SAML token (typically a SAML assertion) is usually issued by an identity provider (IDP) and digitally signed - so that the relaying parties can verify authenticity of the token. This means that you cannot convert token from SAML to JWT,

Get email address from SAML Response using Single Sign On and ADFS

扶醉桌前 提交于 2019-12-01 09:41:49
问题 I am in the process of setting up a single sign on (SSO) system using ADFS and SAML 2.0. I have to following scenario that I am stuck on: 1) User attempts to access web resource, is not logged in so is directed to ADFS SSO service. 2) User successfully authenticates against ADFS. 3) ADFS passes SAML Response back to web resource. 4) The web resource itself has a user database but the user does not exist here. 5) So, the web resource must create the user account silently. To do this I need the

Need signature after SAML token in client request

假装没事ソ 提交于 2019-12-01 09:31:05
I have a serialized SOAP request message with a SAML token holder-of-key that works against a vendor service. I want to create a demonstration program in C# to produce a similar request. To do this, I want to write a client that creates its own SAML token. I've got a SAML2 token created successfully from a self signed cert and I am able to associate it to the request using the ChannelFactoryOperations.CreateChannelWithIssuedToken approach (.Net 4.0). Everything is working great but I can't figure out the C# required to place the signature after the assertion and use the SAML token as the

SAML 2.0 - Multiple AssertionConsumerService in SP

混江龙づ霸主 提交于 2019-12-01 08:25:50
问题 I implement a SAML 2.0 SP. I have a login servlet with endpoint https://my.domain.com/mng/samlLogin, so in the SP metadata file I define: <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://my.domain.com/mng/samlLogin" index="0" isDefault="true"/> And send this endpoint in the AuthenRequest under the AssertionConsumerServiceURL. Now, I have another servlet with a different functionality, and it needs to validate the user against SAML as part

Convert a SAML token to JWT

本秂侑毒 提交于 2019-12-01 08:22:45
问题 I am trying to connect to ACS using a SAML token, problem is ACS has been configured to only accept JWT tokens. What is the best way to convert SAML to JWT? thanks 回答1: You should ask your IDP to provide the JWT token as a SAML attribute inside your current SAML tokens, or ask them to provide you with an alternative way of acquiring the JWT tokens you require. The SAML token (typically a SAML assertion) is usually issued by an identity provider (IDP) and digitally signed - so that the

Simplesamlphp unhandled exception error while using as SP

≯℡__Kan透↙ 提交于 2019-12-01 07:37:45
问题 After successfully receiving the SAML 2.0 token while using simplesamlphp as a Service Provider I get the following error. Oct 21 17:30:15 simplesamlphp DEBUG [6b6e3c270f] GenerateGroups - attribute 'eduPersonAffiliation' not found. Oct 21 17:30:15 simplesamlphp DEBUG [6b6e3c270f] Session: doLogin("default-sp") Oct 21 17:30:15 simplesamlphp WARNING [6b6e3c270f] Unable to find the SAML 2 binding used for this request. Oct 21 17:30:15 simplesamlphp WARNING [6b6e3c270f] Request method: 'GET' Oct