Skip to content

Commit

Permalink
Create diam.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 7, 2024
1 parent 8b28e20 commit 794cc65
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions proto/diam.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
syntax = "proto3";

package diam;

service DIAMNode {
rpc CreateIdentity(CreateIdentityRequest) returns (CreateIdentityResponse) {}
rpc Authenticate(AuthenticateRequest) returns (AuthenticateResponse) {}
}

message CreateIdentityRequest {
Identity identity = 1;
}

message CreateIdentityResponse {
Identity identity = 1;
}

message AuthenticateRequest {
Identity identity = 1;
}

message AuthenticateResponse {
bool authenticated = 1;
}

message Identity {
string id = 1;
string username = 2;
string password = 3;
}

0 comments on commit 794cc65

Please sign in to comment.