Make auth-info endpoint machine readable
This commit is contained in:
parent
e2f5b04ff1
commit
506791fa6a
7 changed files with 112 additions and 36 deletions
|
|
@ -65,6 +65,10 @@ pub trait PermissionService {
|
|||
privilege: &str,
|
||||
context: Authentication<Self::Context>,
|
||||
) -> Result<(), ServiceError>;
|
||||
async fn get_privileges_for_current_user(
|
||||
&self,
|
||||
context: Authentication<Self::Context>,
|
||||
) -> Result<Arc<[Privilege]>, ServiceError>;
|
||||
|
||||
async fn create_user(
|
||||
&self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue