Skip to content

Per-request scoped scope #118

@coolaj86

Description

@coolaj86

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions