• abhay singh 158
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hi
I've implemented an external Open Id Connect Auth. Provider and i manage to login successfully.

Now i'm required to propagate the id_token provided by the third party IDP and I'm stuck on this demand.

I've managed to get an access token, using Auth.AuthToken.getAccessToken('AuthProviderId', 'Open ID connect'), but i need to retrieve the id_token. 

I've set the IdP to send the id_token on the refresh token response but when I use Auth.AuthToken.refreshAccessToken(AuthProviderId, 'Open ID connect', accessToken); it only returns a renewed access token but it won't return the id_token.

Is there any way to retrieve current user's id_token? If not, how can i retrieve the refresh_token? If i can get that refresh token i would be able to make a refresh_token callout without using the authtoken.refreshAccessToken method.

Thanks,

Miguel

 

Hi,

I created one visualforce page with a html5 tag <input id="image" type="file"/>.

When I access that page from salesforce1 and click on "Choose File" button, then salesforce1 app gets crashed. But if I access the same page from Safari browser of my iPad then it works fine. Also in last version of Salesforce1(6.0) was working fine with ios7.

Thus, it looks like Salesforce1 might have a compatibility issue with ios8.0.2.

Thanks,
Vishal

 
Hi all,

We need to implement the following pattern at my org:
  • callout to external data source
  • if that callout takes too long (according to some configurable threshold), log an error (ie do some DML)
  • if that callout timed out on the remote server, try it again
Recognizing the potential for the dreaded "You have uncommitted work pending. Please commit or rollback before calling out." error, I put the error logging code in a future method, thus isolating the DML from the callouts. However, the error is still being thrown. I reduced the issue down to this pattern:
public static void foo() {
    Http http = new Http();
    HttpRequest req = new Httprequest();
    req.setEndpoint('https://test.salesforce.com'); //whatever endpoint
    req.setMethod('GET');
    http.send(req); //works fine
    bar();
    http.send(req); //throws calloutexception
}

@future public static void bar() {

}
Am I correct to assume that calling a future method counts as a DML operation? Is there any documentation I'm missing somewhere?