Summer'17- Generating a Session Id from Lightning Domain Provides Invalid Session Id
Last updated 2017-10-14 ·Reference W-3981698 ·Reported By 36 users
Using a Session Id generated from a Lightning Domain to query for User permissions is failing after upgrade to Summer 17 release.
1. Create a Lightning Component
2. In the @AuraEnabled Controller generate a Session Id using Apex: userInfo.getSessionId()
3. Set the value of the component to the Session Id
4. Execute the below curl using the generated Session Id:
curl -L -H 'X-PrettyPrint: 1' -H 'Authorization: Bearer <SessionID>' https://<mydomain>.my.salesforce.com/id/ (https://<mydomain>.my.salesforce.com/id/%3COrg) ID>/<User ID>
This will throw an error indicating an invalid Session Id.
However, generating the session via Apex returns valid session id.
Reported By (36)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.