You need to sign in to do that
Don't have an account?
Pedro Garcia G
get parameters in Visualforce page
Hi...
I have an issue to get the parameters are coming from Google OAuth request.
This is my code:
but the page is redirected and the parameters are removed.
The Debug Logs only shows the parameters from the servelet
The google sites: https://accounts.google.com,
https://www.googleapis.com are included in the Remote Site setting.
Thanks
I have an issue to get the parameters are coming from Google OAuth request.
This is my code:
<apex:page controller="GoogleDriveController" showQuickActionVfHeader="true" action="{!init}" > ... </apex:page>
public void init(){ System.debug('GoogleDriveController CONSTRUCTOR'); System.debug('THECODE '+ApexPages.currentPage().getParameters().get('code')); for(String val : ApexPage.currentPage().getHeaders().keySet()){ System.debug('head '+val+' -- '+ApexPages.currentPage().getParameters().get(val)); } for(String val : ApexPages.currentPage().getParameters().keySet() ){ System.debug('val '+val+' -- '+ApexPages.currentPage().getParameters().get(val)); } code = ApexPages.currentPage().getParameters().get('code') ; //Get the access token once we have code if(code != '' && code != null){ AccessToken(); } }I can see in the browser inspect network the request with all parameters
https://myinstance.lightning.force.com/lightning/n/MyGoogleDrive?state=security_token%3D138r....
but the page is redirected and the parameters are removed.
The Debug Logs only shows the parameters from the servelet
my.salesforce.com/servlet/servlet.Integration?lid=01r63000000NUnV&ic=1&tour=&isdtp=p1&sfdcIFrameOrigin=https://speed-dream-189-dev-ed.lightning.force.com&sfdcIFrameHost=web&nonce=a9592094acf18f348a08b1e994e9addec1051e483efa3184630d1f17ebd71d89<n_app_id=06m63000000CUlNAAW&clc=0
The google sites: https://accounts.google.com,
https://www.googleapis.com are included in the Remote Site setting.
Thanks
Pedro Garcia G
Does nobody have the same issue?