github.com/infraboard/keyauth@v0.8.1/apps/token/pb/request.proto (about)

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.token;
     4  option go_package = "github.com/infraboard/keyauth/apps/token";
     5  
     6  import "apps/token/pb/token.proto";
     7  import "github.com/infraboard/mcube/pb/page/page.proto";
     8  
     9  message DescribeTokenRequest {
    10      string access_token = 1;
    11      string refresh_token = 2;
    12  }
    13  
    14  message ValidateTokenRequest {
    15      string namespace_id = 1;
    16      string endpoint_id = 2;
    17      string access_token = 3;
    18      string refresh_token = 4;
    19  }
    20  
    21  message IssueTokenRequest {
    22      string client_id = 1;
    23      string client_secret =2;
    24      string verify_code = 3;
    25      string username = 4;
    26      string password = 5;
    27      string refresh_token = 6;
    28      string access_token = 7;
    29      string auth_code = 8;
    30      string state = 9;
    31      GrantType grant_type = 10;
    32      TokenType type = 11;
    33      int64 access_expired_at = 15;
    34      string description = 16;
    35      string scope = 12;
    36      string user_agent = 13;
    37      string remote_ip = 14;
    38      string service = 17;
    39  }
    40  
    41  message RevolkTokenRequest {
    42      string client_id = 1;
    43      string client_secret =2;
    44      bool logout_session =3;
    45      string access_token = 4;
    46      string refresh_token = 5;
    47  }
    48  
    49  message QueryTokenRequest { 
    50     infraboard.mcube.page.PageRequest page = 1 ;
    51      string application_id = 2;
    52      string account = 4;
    53      GrantType grant_type = 3;
    54  }
    55  
    56  message BlockTokenRequest {
    57      string access_token = 1;
    58      string block_reason = 2;
    59      BlockType block_type = 3;
    60  }
    61  
    62  message ChangeNamespaceRequest {
    63      // @gotags: json:"namespace" validate:"required"
    64      string namespace = 1;
    65      // @gotags: json:"token" validate:"required"
    66      string token = 2;
    67  }
    68  
    69  message DeleteTokenRequest { 
    70      repeated string access_token = 1;
    71      string domain = 2;
    72      string account = 3;
    73  }
    74  
    75  message DeleteTokenResponse {
    76      string message = 1;
    77      repeated string success = 2;
    78      repeated string failed = 3;
    79  }
    80  
    81