passport-openidconnect icon indicating copy to clipboard operation
passport-openidconnect copied to clipboard

All parameters of OpenIDConnectStrategy are not given in the README.md documentation

Open laparn opened this issue 2 years ago • 0 comments

Thanks for this nice passport library. I just used it and was blocked during some time, because I was not understanding why I couldn't get the email and displayName from a lemonldap-ng server which was configured for sending them in the claims. Finally, in looking in the examples (that are linked to in the github README.md but not on the passport-openidconnect page), I saw that there was a scope argument for the openIDConnectStrategy. Then I added scope: ['email', 'profile'] in the object provided to OpenIdStrategy and voilà ! it worked. So I think that all arguments of the OpenIdStrategy should be listed in a paragraph in the README.md file and for the poor programmer. That said, now, it works, so thanks a lot !

laparn avatar Mar 16 '22 11:03 laparn