function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Emmanuel telmonEmmanuel telmon 

Access token from SAML assertion flow not working

Hi,

I am trying to get the access token by implementing the SAML Assertion Flow.
So far, I got the web SAML authentification working with Salesforce being the Identity Provider.
I am getting a SAML response with success and  sales forces did call my server /acs route as expected.


But I can get the access token by reposting the SAMLResponse received to the token endpoint.

I POSTED the following into the body to  https://login.salesforce.com/services/oauth2/token.

grant_type— assertion 
assertion—the SALMContent previously received encoded 64
assertion_type—urn:oasis:names:tc:SAML:2.0:profiles:SSO:browser,

What do I need to modify in that SAML response to post it and get the access token?

Regards,

Emmanuel
Newbie