Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject remoting context to options arg #2762

Closed
wants to merge 2 commits into from

Commits on Sep 20, 2016

  1. Implement loopback.optionsFromContext

    Create a function that can be used in definition of "accepts" arguments
    to build an "options" argument from the request context.
    
    The "options" object built by this function has the following
    properties:
    
     - `options.remotingContext` is the instance of strong-remoting context
       that typically contains `req` and `res` objects along other data.
     - `options.currentUserId` is the id of the user making the request
       or `null` for anonymous requests.
     - `options.accessToken` is the access-token used to authenticate
       the client or `null` for anonymous requests.
    bajtos committed Sep 20, 2016
    Configuration menu
    Copy the full SHA
    e993cd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f698b97 View commit details
    Browse the repository at this point in the history