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

"scope" property in user response #30

Open
paulyoung opened this issue Sep 16, 2015 · 3 comments
Open

"scope" property in user response #30

paulyoung opened this issue Sep 16, 2015 · 3 comments

Comments

@paulyoung
Copy link
Contributor

This is present in the response when making a GET request to https://passport.thegrid.io/api/user, but isn't documented or shown in the schema.

This appears to be the authentication scopes listed here: http://developer.thegrid.io/authentication.html

Can I assume that this is optional? It's not present when making a request to https://passport.thegrid.io/api/user/{id}.

@trustmaster
Copy link

https://passport.thegrid.io/api/user/{id} and https://passport.thegrid.io/api/user/ are different API calls. The latter is for currently authenticated user and carries scope data to be used in auth filters.

@paulyoung
Copy link
Contributor Author

But in terms of having a single user model for both, I think you're confirming that scope would need to be optional.

@trustmaster
Copy link

Speaking schema, yes, scope is optional.

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

2 participants