Skip to content

Commit

Permalink
Modified API for Local Users with Hash Password (#6694)
Browse files Browse the repository at this point in the history
* Added Test API for Local Users save

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Removing duplicate code

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Removing duplicate code

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Changes for adding is hashed field in create user api

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* adding test cases

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
  • Loading branch information
YashviJain01 authored and vinay033 committed Apr 22, 2022
1 parent 8e6244b commit 77957fd
Show file tree
Hide file tree
Showing 13 changed files with 177 additions and 116 deletions.
97 changes: 54 additions & 43 deletions api/external/iam/v2/request/users.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/external/iam/v2/request/users.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ message CreateUserReq {
string name = 2;
// Password for user. Used to sign in.
string password = 3;
//boolean for if hash password there
bool is_hashed = 4;
}

message ListUsersReq {}
Expand Down
2 changes: 1 addition & 1 deletion api/external/iam/v2/users.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ service Users {
option (chef.automate.api.iam.policy).action = "iam:users:create";
};

/*
/*
List all users
Lists all local users.
Expand Down
5 changes: 5 additions & 0 deletions api/external/iam/v2/users.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77957fd

Please sign in to comment.