FusionAuth / nodebb-plugin-fusionauth-oidc

NodeBB Plugin that allows users to login/register via any configured OAuth provider.
https://fusionauth.io
BSD 2-Clause "Simplified" License
8 stars 9 forks source link

Roles claim not undefined-safe #10

Closed Marty closed 2 years ago

Marty commented 3 years ago

I receive the following error trying to get openid to work:

2020-11-23T17:22:52.812Z [4567/93] - error: /auth/fusionauth-oidc/callback
TypeError: Cannot read property 'some' of undefined
    at PassportOIDC._verify (/opt/nodebb/node_modules/nodebb-plugin-fusionauth-oidc/library.js:89:118)

https://github.com/FusionAuth/nodebb-plugin-fusionauth-oidc/blob/a3f978040ff924f3401797f7abb258308cd85dbc/library.js#L89

mooreds commented 2 years ago

@Marty are you running against FusionAuth or a different OIDC server?

Thanks for calling out that line.

mooreds commented 2 years ago

Fixed in 1.0.4