Created
August 4, 2014 05:41
-
-
Save junojisan/1078f689a312eb31da02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public OAuthCallbackController(){ | |
String error = ApexPages.currentPage().getParameters().get('error'); | |
String errorDescription = ApexPages.currentPage().getParameters().get('error_description'); | |
if(String.isEmpty(error)){ | |
requestToken(); | |
}else{ | |
ApexPages.addMessage( | |
new ApexPages.Message( | |
ApexPages.Severity.ERROR, 'error:' + error + ' description:' + errorDescription | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment