Auth0 does not work in Community v.9.1

Hi,

We are changing our current Oauth plugin to implement Auth0. We first developed the plugin for Community v.10, and it works fine,

so we used the same code for our current version, which is Community v.9.1, but it simply does not work. The v.9 plugin simply breaks at the point that the

OAuthData user is being returned in the ProcessLogin method, and the user should be redirected to the community. The same data is being returned

in the Community v.10 plugin. The error we get is very vague, here is a snapshot:

It gives me a null reference although the OAuthData user that I am returning is not null, and the same code works just fine on Community v.10.1.4.

Has anyone experienced this before? Do you have any suggestions?

Best Regards,

Silviu

Parents Reply
  • Can you check your CallBackUrl? It looks like the return url is added in a slightly different places between versions, and in 9 is spelled "return_url" instead of "ReturnUrl":

    v9 : GET /authorize?[...]&redirect_uri=[...]%2Foauth%3Ftype%3DSDL_ID_OAuth&[...]&return_url=%2Flogin%3Foauth_data_token_key%3DTOKEN&[...]
    v10: GET /authorize?[...]&redirect_uri=[...]%2Foauth%3Ftype%3DSDL_ID_OAuth%26ReturnUrl%3D%2Flogin%3Foauth_data_token_key%3DTOKEN&[...]

    Note the parts in bold, one is added as part of the redirect_uri and one is added as a separate parameter.

Children
No Data