20
20
21
21
syntax = "proto3" ;
22
22
23
+ package authentication ;
24
+
23
25
import "google/protobuf/duration.proto" ;
24
26
25
- option go_package = "github.com/arangodb/kube-arangodb/integrations/v1/definition" ;
26
-
27
- package authentication ;
27
+ option go_package = "github.com/arangodb/kube-arangodb/integrations/authentication/v1/definition" ;
28
28
29
29
// AuthenticationV1 define ServiceInterface for Authentication V1
30
30
service AuthenticationV1 {
@@ -38,48 +38,48 @@ service AuthenticationV1 {
38
38
// ValidateRequest defines request for AuthenticationV1 Validate Request
39
39
message ValidateRequest {
40
40
// Token specifies a token extracted from the request or used currently
41
- string Token = 1 ;
41
+ string token = 1 ;
42
42
}
43
43
44
44
// ValidateResponse defines response for AuthenticationV1 Validate Request
45
45
message ValidateResponse {
46
46
// IsValid returns information about the validity of the token
47
- bool IsValid = 1 ;
47
+ bool is_valid = 1 ;
48
48
49
49
// Message message for the validation phase
50
- string Message = 2 ;
50
+ string message = 2 ;
51
51
52
52
// Details returns token details if the token is valid
53
- optional ValidateResponseDetails Details = 3 ;
53
+ optional ValidateResponseDetails details = 3 ;
54
54
}
55
55
56
56
// ValidateResponseDetails defines optional response for AuthenticationV1 Validate Request.
57
57
// Returned only if the Token provided in the request is valid.
58
58
message ValidateResponseDetails {
59
59
// Lifetime specify the lifetime of the token
60
- google.protobuf.Duration Lifetime = 1 ;
60
+ google.protobuf.Duration lifetime = 1 ;
61
61
62
62
// User returns the User used in the Token. If a user is not specified, `root` is returned
63
- string User = 2 ;
63
+ string user = 2 ;
64
64
}
65
65
66
66
// CreateTokenRequest defines request for AuthenticationV1 CreateToken Request
67
67
message CreateTokenRequest {
68
68
// Lifetime specifies the lifetime of the token as duration. Defaults to 1 hour
69
- optional google.protobuf.Duration Lifetime = 1 ;
69
+ optional google.protobuf.Duration lifetime = 1 ;
70
70
71
71
// User specify the User for which token should be created. By default, the default user is used (root in most cases)
72
- optional string User = 2 ;
72
+ optional string user = 2 ;
73
73
}
74
74
75
75
// CreateTokenResponse defines response for AuthenticationV1 CreateToken Request
76
76
message CreateTokenResponse {
77
77
// Lifetime specify the lifetime of the token as the duration
78
- google.protobuf.Duration Lifetime = 1 ;
78
+ google.protobuf.Duration lifetime = 1 ;
79
79
80
80
// User returns the User used in the Token
81
- string User = 2 ;
81
+ string user = 2 ;
82
82
83
83
// Token returns the Token as a string
84
- string Token = 3 ;
85
- }
84
+ string token = 3 ;
85
+ }
0 commit comments