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
Now, the above view will support GET, PUT, PATCH, and DELETE methods. Now, if I create a token with a scope as user_detail, it will give access to all the methods. However, I want different read/write scopes for SAFE and UNSAFE methods.
Upon reading OAuthToolkit code for TokenHasResourceScope, it create scopes for SAFE and UNSAFE methods, ie user_detail:read and user_detail:write.
Now, if the client request for user_detail:read scope, the library returns invalid scope.
How do I support scopes for read and write of a particular view differently?
The text was updated successfully, but these errors were encountered:
Now, the above view will support GET, PUT, PATCH, and DELETE methods. Now, if I create a token with a scope as user_detail, it will give access to all the methods. However, I want different read/write scopes for SAFE and UNSAFE methods.
Upon reading OAuthToolkit code for TokenHasResourceScope, it create scopes for SAFE and UNSAFE methods, ie user_detail:read and user_detail:write.
Now, if the client request for user_detail:read scope, the library returns invalid scope.
How do I support scopes for read and write of a particular view differently?
I'm using DRF and OAuthToolkit. Here is my view:-
Now, the above view will support
GET
,PUT
,PATCH
, andDELETE
methods. Now, if I create a token with a scope asuser_detail
, it will give access to all the methods. However, I want different read/write scopes for SAFE and UNSAFE methods.Upon reading OAuthToolkit code for
TokenHasResourceScope
, it create scopes forSAFE
andUNSAFE
methods, ieuser_detail:read
anduser_detail:write
.Now, if the client request for
user_detail:read
scope, the library returnsinvalid scope
.How do I support scopes for read and write of a particular view differently?
The text was updated successfully, but these errors were encountered: