Open
Description
hub's auth.ts
has a case for OAuth2, where if (userinfoURL != null) { ... }
defines a .userProfile
method. This overwrites https://github.com/passport-next/passport-oauth2/blob/master/lib/strategy.js#L288 … and well, this code by itself might or might not work 100%, but it's at least a vital step.
However, there is nothing like that for OAuth1.
The goal of this ticket is to refactor this a bit and add something like userinfoURLOAuth1
to code a similar case.
… and well, after reading the code, I wonder how the profile information from defining this userProfile
callback even gets into the login_opts
object to be used by cocalc. So, this ticket is a bit vague and needs some investigation.