is It possible to programmatically capture Saml Assertion from external Idp? #232
Unanswered
PavelJacobo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@PavelJacobo Good morning. I'm unsure if this could help, you may try Customizing user pool workflows with Lambda triggers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm using Cognito and Okta as external SAML Idp. So when user wants to access my application it's redirected to Okta that is acting as Idp.
Okta sends a SAML response with SAML assertion back to Cognito to /idpresponse endpoint. I can see SAML response in the browser, but I'm not able to capture this SamlResponse programatically to be able to retrieve a token from Okta Oauth server.
I want to implement the following flow here:
Saml assertion flow with grant-type: urn:ietf:params:oauth:grant-type:saml2-bearer
this implies that we have to be able to get SAML assertion and send it back to Okta OAuth to /token endpoint.
How can we programmatically capture SAML response from Idp in Cognito to be able to implement SAML assertion grant flow as described in Okta documentation? I've tried with Post authentication Lambda trigger and Pre authentication Lambda trigger, but SamlReponse parameters do not end on any of the lambdas.
this is the flow:
this is the flow I would like to implement. I need to capture SAML assertion, because I also need a token from external Okta OAuth.
Thanks so much
Beta Was this translation helpful? Give feedback.
All reactions