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

Defining Scope #32

Open
tracend opened this issue Nov 22, 2012 · 1 comment
Open

Defining Scope #32

tracend opened this issue Nov 22, 2012 · 1 comment

Comments

@tracend
Copy link
Member

tracend commented Nov 22, 2012

The queries now are returning every attribute in each record.

For production apps there might be attributes that are private and shouldn't be revealed to the client (ex. password).

For these cases, defining a scope of a selection can limit the attributes only to the specified.

@tracend
Copy link
Member Author

tracend commented Nov 22, 2012

Scope should be defined on the server -side to prevent the user requesting private attributes.

For that reason if can become part of the crudr config file - for example:

"scope" : { 
        "user" : "email name"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant