"profile is not defined" error when testing social login provider

Hi,

I am trying to use CILogon as a SSO provider for my application. I am using it through the Custom Social Connections extension. When trying to test the connection, I am redirected to the login screen for CILogon, but after picking a login provider, I am being kicked back to auth0 with

“error”: {
“message”: “profile is not defined”,
“oauthError”: “invalid_request”,
“type”: “request-error”
},

Is this to be expected?

The whole output is:

{
“date”: “2019-03-29T22:02:27.361Z”,
“type”: “f”,
“description”: “profile is not defined”,
“connection”: “CILogon”,
“connection_id”: “xxxxx”,
“client_id”: “xxxxx”,
“client_name”: “N/A”,
“ip”: “128.104.255.2”,
“user_agent”: “Firefox 66.0.0 / Windows 10.0.0”,
“details”: {
“body”: {},
“qs”: {
“code”: “https://cilogon.org/oauth2/authzGrant/xxxx/xxxx”,
“state”: “xxxx”
},
“connection”: “CILogon”,
“error”: {
“message”: “profile is not defined”,
“oauthError”: “invalid_request”,
“type”: “request-error”
},
“session_id”: “xxxx”
},
“hostname”: “icecube-test.auth0.com”,
“strategy”: “oauth2”,
“strategy_type”: “social”,
“log_id”: “xxxxx”,
“isMobile”: false
}

Thanks a lot in advance!

Hello there @madtowneast and welcome to Auth0’s Community! I took a look at your fetch profile script and found that may be the source of your issue. I have included the documentation on this aspect to help but I believe defining more about what you would like to pull back in the profile would be beneficial to start with and to test from there. Please let me know if this helps you at all in your quest. Thanks!

https://auth0.com/docs/extensions/custom-social-extensions

I wanted to follow up @madtowneast and see if updating your fetch profile script helped you? Thanks in advance!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.