Skip to content
Snippets Groups Projects
Unverified Commit 372d2e92 authored by Robert Raposa's avatar Robert Raposa Committed by GitHub
Browse files

BOM-1264: add third-party-auth scope and usage (#23135)


* WIP: add third-party-auth scope and usage

BOM-1264


* Fix tests now that we do permissions in a more standard way.

Rather than manually setting the permission class we previously
explicitly raised a PermissionDenied exception.  The way DRF
permissoning logic works, if we use the WWW-Authenticate header in the
highest priority auth class, it will return a 401 instead of a 403.


* Added test to make sure having permissions gives access to user mapping api

* Test new filters logic.

Ensure that the filters we add to the application access model make it
into the JWT correctly.

* quality fix

* quality fix

* disable pylint warning

* quality fix

* fix indent prob

Co-authored-by: default avatarFeanil Patel <feanil@edx.org>
Co-authored-by: default avatarManjinder Singh <49171515+jinder1s@users.noreply.github.com>
parent dca3dbc5
No related merge requests found
Showing
with 451 additions and 47 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment