
ix8cq (ix8cq) asked a question.
Facing a similar issues as in - https://support.okta.com/help/s/question/0D54z00007RUGtmCAH/facing-assertion-invalid-issue-in-saml-20-assertion-grant?language=en_US
As suggested, had a look at the example given in https://github.com/emanor-okta/saml-assertion-flow-with-okta
The example doesn't work as is because the saml assertions are encrypted and in the code it tries to search for unencrypted assertion.
I am facing the same issue -
{
"error": "invalid_grant",
"error_description": "'assertion' is not a valid SAML 2.0 Assertion."
}
But unable to figure out the problem. Is there a step by step guide / working example?
Kindly help!
Thanks,
Amul.

Hello @ix8cq (ix8cq) Thank you for reacting out to our Community!
Please see the documentation below that should work for the issue described:
https://developer.okta.com/docs/guides/implement-grant-type/saml2assert/main/
Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Community members help others by clicking Like or Select as Best on responses. Try it today.