Add auth interceptor

This commit is contained in:
2021-12-05 14:55:18 +01:00
parent 6377602033
commit 651de90839
10 changed files with 228 additions and 97 deletions

View File

@@ -79,10 +79,11 @@ message User {
string username = 2;
bytes hashed_password = 3;
enum Role {
UNAPPROVED = 0;
UNKNOWN = 0;
VIEWONLY = 1;
USER = 2;
ADMIN = 3;
UNAPPROVED = 4;
}
Role user_role = 4;
bool active = 5;