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
LinThawLinThaw 

How to get AzureAD access token by using SAML Assertion in callout apex

hi there,

How to get AzureAD access token by using SAML Assertion in callout apex?

I didn't find apex code in any site.

Thanks in advance.

grant_type=urn:ietf:params:oauth:grant-type:saml2-bearer
assertion=<SAML Assertion>
 

ref:

SAML Single Sign-On with Salesforce as the Service Provider (https://help.salesforce.com/s/articleView?id=sf.sso_saml_setting_up.htm&type=5)