I have an application which I am trying to get working with Openid conect and ADFS. I have configured a new Authentication Scheme with Social Sign-on, set up my shared secret etc. When the app starts it redirects me to my ADFS to authenticate and when I return to the APEX app I am getting some errors in the debug log:
Can not login, returned userinfo's "email" is empty.
Error: Null username passed to login procedure.
When I debug with Chrome debugger, I can see the redirection from the ADFS /authorize url back to apex_authentication.callback with the code data, but Apex doesn't then try to call the /token endpoint to convert the code to JSON tokens..