Add auth metadata endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
12
auth.proto
12
auth.proto
@@ -4,10 +4,13 @@ option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
|
|||||||
|
|
||||||
package auth;
|
package auth;
|
||||||
|
|
||||||
|
import "google/protobuf/empty.proto";
|
||||||
|
|
||||||
service AuthService {
|
service AuthService {
|
||||||
rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
|
rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
|
||||||
rpc GetGroupRole(IdMessage) returns (RoleReponse);
|
rpc GetGroupRole(IdMessage) returns (RoleReponse);
|
||||||
rpc ValidateSession(IdMessage) returns (ValidateResponse);
|
rpc ValidateSession(IdMessage) returns (ValidateResponse);
|
||||||
|
rpc GetAuthMetadata(google.protobuf.Empty) returns (AuthMetadataResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message IdMessage {
|
message IdMessage {
|
||||||
@@ -32,4 +35,11 @@ message RoleItem {
|
|||||||
|
|
||||||
message ValidateResponse {
|
message ValidateResponse {
|
||||||
bool Valid = 1;
|
bool Valid = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message AuthMetadataResponse {
|
||||||
|
string LoginURL = 1;
|
||||||
|
string LogoutURL = 2;
|
||||||
|
string AccountURL = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user