Maybe I'm just not understanding something, but it seems that you can only define the scope-to-be-used inside the strategy as an all-or-nothing deal when the strategy is created.
I'd like to be able to have my app request scopes by degrees - just getting the scope that's needed exactly when it's needed - like facebook encourages.
I'm trying to think of a way to add this feature without breaking anything. Maybe adding an options hash after the callback?
that.authenticate(req, res, cb, reqOpts);
req.authenticate(['facebook'], cb, { "scope": ["email", "birthday"] });
What would you suggest?
Maybe I'm just not understanding something, but it seems that you can only define the scope-to-be-used inside the strategy as an all-or-nothing deal when the strategy is created.
I'd like to be able to have my app request scopes by degrees - just getting the scope that's needed exactly when it's needed - like facebook encourages.
I'm trying to think of a way to add this feature without breaking anything. Maybe adding an options hash after the callback?
What would you suggest?