-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-partitions
- Loading branch information
Showing
7 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Messages describing authentication and associated requests and responses. | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.auth; | ||
|
||
option csharp_namespace = "ArmoniK.Api.gRPC.V1.Auth"; | ||
|
||
/** | ||
* A user. | ||
*/ | ||
message User { | ||
string username = 1; /** Username. If authentication is disabled, must be set to 'Anonymous' */ | ||
|
||
repeated string roles = 2; /** Roles. If authentication is disabled, must return []. */ | ||
repeated string permissions = 3; /** Permissions. If authentication is disabled, must return every permissions. */ | ||
} | ||
|
||
/** | ||
* Request to get current user informations. | ||
*/ | ||
message GetCurrentUserRequest {} | ||
|
||
/** | ||
* Response to get current user informations. | ||
*/ | ||
message GetCurrentUserResponse { | ||
User user = 1; /** Return current user. If auth failed, must throw a gRPC error. */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Authentication related methods within a service. | ||
*/ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.auth; | ||
|
||
import "auth_common.proto"; | ||
|
||
option csharp_namespace = "ArmoniK.Api.gRPC.V1.Auth"; | ||
|
||
/** | ||
* Service for authentication management. | ||
*/ | ||
service Authentication { | ||
/** | ||
* Get current user | ||
*/ | ||
rpc GetCurrentUser(GetCurrentUserRequest) returns (GetCurrentUserResponse) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters