jwt.proto 517 Bytes
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
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
syntax = "proto3";

package dfs.jwt;
option go_package = "cnlab.net/csst/proto/common/auth";
import "common/error.proto";

service AuthSrv {
    rpc MakeAccessToken (Request) returns (Response) {
    }
    rpc DelUserAccessToken (Request) returns (Response) {
    }
    rpc GetCachedAccessToken (Request) returns (Response) {
    }
}

message Request {
    int64 userId = 1;
    string userName = 2;
    string token = 3;
}

message Response {
    bool success = 1;
    common.Error error = 2;
    string token = 3;
}