You need to sign in to do that
Don't have an account?

Showing error messages from a Custom Authentication Provider Plug-in
I wrote a Custom Authentication Provider Plug-in for OAuth authentication with a SAAS service. It works fine.
Question: How do I give error messages to the user if there is a problem during the OAuth authentication and authorization dance? Eg if the client id or secret is wrong. Or if the user declined to authorize the app when asked?
Thanks.
PS. pages that were helpful:
http://help.salesforce.com/apex/HTViewHelpDoc?id=sso_provider_plugin_custom.htm&language=en_US#plugin_create
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/authproviderplugin.htm
Question: How do I give error messages to the user if there is a problem during the OAuth authentication and authorization dance? Eg if the client id or secret is wrong. Or if the user declined to authorize the app when asked?
Thanks.
PS. pages that were helpful:
http://help.salesforce.com/apex/HTViewHelpDoc?id=sso_provider_plugin_custom.htm&language=en_US#plugin_create
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/authproviderplugin.htm
ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.error,.'your error message'));
As I said in my question, the potential errors will occur during the processing of an Apex class that I wrote that provides Custom Authentication for Auth. Providers. Any other ideas? Many thanks.