mirror of
				https://github.com/onepanelio/onepanel.git
				synced 2025-11-01 01:02:32 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			445 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			445 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| syntax = "proto3";
 | |
| 
 | |
| package api;
 | |
| 
 | |
| import "google/api/annotations.proto";
 | |
| import "google/protobuf/empty.proto";
 | |
| 
 | |
| service AuthService {
 | |
|     rpc IsValidToken(IsValidTokenRequest) returns (google.protobuf.Empty) {
 | |
|         option (google.api.http) = {
 | |
|             post: "/apis/v1beta1/auth/token"
 | |
|             body: "token"
 | |
|         };
 | |
|     }
 | |
| }
 | |
| 
 | |
| message TokenWrapper {
 | |
|     string token = 1;
 | |
| }
 | |
| 
 | |
| message IsValidTokenRequest {
 | |
|     TokenWrapper token = 1;
 | |
| } | 
