leaderboardsgg / leaderboard-backend

The backend for Leaderboards.gg. Also holds public-facing APIs.
https://info.leaderboards.gg
GNU General Public License v3.0
12 stars 16 forks source link

Authorisation #60

Closed zysim closed 2 years ago

zysim commented 2 years ago

Closes: #52.

Implements authorisation in the app based on our three current user types: admins, mods, and users. All controller actions now default to requiring authenticated users unless explicitly given the [AllowAnonymous] attribute. Also, actions requiring specific authZ will have an [Authorize(Policy = <UserType>)] attribute. These are handled by the UserTypeAuthorizationHandler class.

Todo: