Skip to content

Commit

Permalink
Use oneof for LoginRequest params
Browse files Browse the repository at this point in the history
The login is either local or SSO but not both.
  • Loading branch information
ravicious committed Apr 1, 2022
1 parent 6fb9f87 commit 113ac53
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 195 deletions.
11 changes: 7 additions & 4 deletions lib/teleterm/api/proto/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,13 @@ message LogoutRequest { string cluster_uri = 1; }
message LoginRequest {
// cluster_uri is the cluster uri
string cluster_uri = 1;
// local holds parameters for local logins
LocalParams local = 2;
// sso holds parameters for sso logins
SsoParams sso = 3;

oneof params {
// local holds parameters for local logins
LocalParams local = 2;
// sso holds parameters for sso logins
SsoParams sso = 3;
}

// LocalParams describes parameters for local user logins
message LocalParams {
Expand Down
Loading

0 comments on commit 113ac53

Please sign in to comment.