You need to sign in to do that
Don't have an account?
REVNA
New to OAUTH and APIs. I am trying to generate Accesstoken using Open ID Connect. But returns null
public static String AUTH_PROVIDER_ID = ma_Constants__c.getInstance().Auth_Provider_ID__c;
system.debug('=AUTH PROVIDER VALUE=='+AUTH_PROVIDER_ID);
String accessToken = Auth.AuthToken.getAccessToken(AUTH_PROVIDER_ID, 'Open ID Connect') ;
system.debug('---ACCESS TOKEN---'+accessToken);
I get the return value to be NULL. What are the possible things that could be causing the issue.
system.debug('=AUTH PROVIDER VALUE=='+AUTH_PROVIDER_ID);
String accessToken = Auth.AuthToken.getAccessToken(AUTH_PROVIDER_ID, 'Open ID Connect') ;
system.debug('---ACCESS TOKEN---'+accessToken);
I get the return value to be NULL. What are the possible things that could be causing the issue.