From ad8e4ebacff58776e55c91e64092adba48aa838d Mon Sep 17 00:00:00 2001 From: itzaname Date: Sat, 21 Jun 2025 21:25:50 -0400 Subject: [PATCH] Add auth metadata endpoint --- auth.proto | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/auth.proto b/auth.proto index cf419d2..59f1e18 100644 --- a/auth.proto +++ b/auth.proto @@ -4,10 +4,13 @@ option go_package = "git.itzana.me/strafesnet/go-grpc/auth"; package auth; +import "google/protobuf/empty.proto"; + service AuthService { rpc GetSessionUser(IdMessage) returns (SessionUserResponse); rpc GetGroupRole(IdMessage) returns (RoleReponse); rpc ValidateSession(IdMessage) returns (ValidateResponse); + rpc GetAuthMetadata(google.protobuf.Empty) returns (AuthMetadataResponse); } message IdMessage { @@ -32,4 +35,11 @@ message RoleItem { message ValidateResponse { bool Valid = 1; -} \ No newline at end of file +} + +message AuthMetadataResponse { + string LoginURL = 1; + string LogoutURL = 2; + string AccountURL = 3; +} +