Adds an @always_allow_admins decorator to help Authorization classes check if a user is an admin.
We let the authorization sub-class decide what authorization endpoints to decorate to always allow admins, instead of always allowing admins for any action in any authorization sub-class.
Part 1: #130 (adds mixins for FLAC and Auth0AuthZ extensions, adds parameter checks)
Part 2: #135 (handles case of admin action)
Part 3: #136 (expands and updates tests, updates and fixes auth API)
Adds an
@always_allow_admins
decorator to help Authorization classes check if a user is an admin.We let the authorization sub-class decide what authorization endpoints to decorate to always allow admins, instead of always allowing admins for any action in any authorization sub-class.
Part 1: #130 (adds mixins for FLAC and Auth0AuthZ extensions, adds parameter checks)
Part 2: #135 (handles case of admin action)
Part 3: #136 (expands and updates tests, updates and fixes auth API)