You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ciao Nicola,
I was wondering: is there a way to associate a client_id with a specific endpoint?
Example:
Tokens created with client_id d1p4Kg7bS7M90XrseVeHa37lfAGCj8YgicVHlO93 are authorized to request just the https://api.website.com/people/ endpoint and nothing else. If a token created with another client_id requests the people endpoint a 401 error is returned.
I see that in the clients mongo collection there's a default_scope field which is always empty and in the tokens collection there's a scope field which is also always empty.
In your code I see that these scopes are empty by default and never gets filled with some value.
Maybe this code and field was a preparation for a future development?
Thank you in advance!
Andrea
The text was updated successfully, but these errors were encountered:
Ciao Nicola,
I was wondering: is there a way to associate a client_id with a specific endpoint?
Example:
Tokens created with client_id
d1p4Kg7bS7M90XrseVeHa37lfAGCj8YgicVHlO93
are authorized to request just thehttps://api.website.com/people/
endpoint and nothing else. If a token created with another client_id requests thepeople
endpoint a 401 error is returned.I see that in the
clients
mongo collection there's adefault_scope
field which is always empty and in thetokens
collection there's ascope
field which is also always empty.In your code I see that these scopes are empty by default and never gets filled with some value.
Maybe this code and field was a preparation for a future development?
Thank you in advance!
Andrea
The text was updated successfully, but these errors were encountered: