API for authenticate/deauthenticate (#151)
* Creating the authentication API.
This commit is contained in:
1 parent
d8f11af4d7
commit
08e9a027fa
7 files changed
+1274
-64
No files matched your search
@@ -0,0 +1,44 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.api.resources.authtokens.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/watchtower/internal/gen/controller/api/resources/authtokens;authtokens";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
// AuthToken contains all fields related to an AuthToken resource
|
||||
message AuthToken {
|
||||
// The ID of the AuthToken
|
||||
// Output only.
|
||||
string id = 1;
|
||||
|
||||
// The token. This will only be populated after login and is only ever visible to the end user whose login
|
||||
// request resulted in this auth token being created.
|
||||
// Output only.
|
||||
string token = 2;
|
||||
|
||||
// The id of the user of this AuthToken.
|
||||
// Output only.
|
||||
string user_id = 4 [json_name="user_id"];
|
||||
|
||||
// The id of the user of this AuthToken.
|
||||
// Output only.
|
||||
string auth_method_id = 5 [json_name="auth_method_id"];
|
||||
|
||||
// The time this resource was created
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 6 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 7 [json_name="updated_time"];
|
||||
|
||||
// The approximate time this AuthToken was last used.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp approximate_last_used_time = 8 [json_name = "approximate_last_used_time"];
|
||||
|
||||
// The time this AuthToken expires.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp expiration_time = 9 [json_name="expiration_time"];
|
||||
}
|
||||
Reference in new issue
Block a user