token.proto 873 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
syntax = "proto3";

package gpnetd;

option go_package = "./gpnetdpb";
option java_outer_classname = "TokenProto";
option java_package = "com.gpnetd";

import "google/protobuf/empty.proto";

service Token {
  rpc Refresh(TokenRefreshReq) returns (TokenRefreshResp);
  rpc Revoke(TokenRevokeReq) returns (google.protobuf.Empty);
  rpc RefreshApplicationToken(TokenRefreshApplicationTokenReq) returns (TokenRefreshApplicationTokenResp);
  rpc RevokeApplicationToken(TokenRevokeApplicationTokenReq) returns (google.protobuf.Empty);
}

message TokenRefreshReq {
  string token = 1;
}

message TokenRefreshResp {
  string token = 1;
}

message TokenRevokeReq {
  string token = 1;
}

message TokenRefreshApplicationTokenReq {
  string token = 1;
}

message TokenRefreshApplicationTokenResp {
  string token = 1;
}

message TokenRevokeApplicationTokenReq {
  string token = 1;
}