refactor(user_password) rename all references of user_password to username_password (#2232)
This commit is contained in:
1 parent
afd4437492
commit
3e9c99c217
33 files changed
+367
-278
No files matched your search
@@ -280,8 +280,8 @@ message SessionAuthorization {
|
||||
repeated SessionCredential credentials = 110 [json_name = "credentials"];
|
||||
}
|
||||
|
||||
// The layout of the struct for "credential" field in SessionCredential for a user_password credential type.
|
||||
message UserPasswordCredential {
|
||||
// The layout of the struct for "credential" field in SessionCredential for a username_password credential type.
|
||||
message UsernamePasswordCredential {
|
||||
// Username of the credential
|
||||
string username = 1; // @gotags: `class:"sensitive"`
|
||||
|
||||
|
||||
@@ -5,13 +5,16 @@ package controller.servers.services.v1;
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
message Credential {
|
||||
reserved 1;
|
||||
reserved "user_password";
|
||||
|
||||
oneof credential {
|
||||
UserPassword user_password = 1;
|
||||
UsernamePassword username_password = 2;
|
||||
}
|
||||
}
|
||||
|
||||
// UserPassword is a credential containing a username and a password.
|
||||
message UserPassword {
|
||||
// UsernamePassword is a credential containing a username and a password.
|
||||
message UsernamePassword {
|
||||
// The username of the credential
|
||||
string username = 10; // @gotags: `class:"public"`
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ message Credential {
|
||||
string status = 12;
|
||||
}
|
||||
|
||||
message UserPasswordOverride {
|
||||
message UsernamePasswordOverride {
|
||||
// library_id of the owning vault credential library.
|
||||
// @inject_tag: `gorm:"primary_key"`
|
||||
string library_id = 1;
|
||||
|
||||
Reference in new issue
Block a user