You need to sign in to do that
Don't have an account?
Authenticate Salesforce User with IDP Credentials (using SAML)
Hi ,
We have a third party IDP setup with Salesforce as SP and are using IDP initiated flow to authenticate the user which works well from browser. We need the Salesforce session Id using IDP credentials via code. Is there any way we can do that?
Though we can generate a SMAL assertion and post it to Salesforce directly but we need to sign that assertion with IDP key which IDP does not shares. Any other options?
We have a third party IDP setup with Salesforce as SP and are using IDP initiated flow to authenticate the user which works well from browser. We need the Salesforce session Id using IDP credentials via code. Is there any way we can do that?
Though we can generate a SMAL assertion and post it to Salesforce directly but we need to sign that assertion with IDP key which IDP does not shares. Any other options?
UserInfo.getSessionId() : Returns the session ID for the current session.
HOW TO GET SALESFORCE SESSION ID
String MySessionID = UserInfo.getSessionID();
http://rainforce.walkme.com/how-to-get-salesforce-session-id/#.U4iHG_mSwpE
Regards,
Ashish