Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Update protobufs for Teleterm#696

Merged
ravicious merged 2 commits intomasterfrom
ravicious/update-proto
Mar 24, 2022
Merged

Update protobufs for Teleterm#696
ravicious merged 2 commits intomasterfrom
ravicious/update-proto

Conversation

@ravicious
Copy link
Copy Markdown
Member

@gzdunek After this lands on master, you'll need to update your teleterm branch and rebuild tsh.


This commit removes a bunch of unused protobufs and also updates some of those that got updated on the teleterm branch in the teleport repo.

The biggest change from all of them that required actual changes in createClient.ts is that LoginRequest now has oneof on Sso and Local. This is because a login request should have either Sso or Local params, but not both at the same time.

The previous implementation called both setSso and setLogin on the same object. This no longer works with the use of oneof, because calling setLogin after setSso would clear the Sso params.

This commit removes a bunch of unused protobufs and also updates some of
those that got updated on the teleterm branch in the teleport repo.

The biggest change from all of them is that LoginRequest now has oneof
on Sso and Local. [1] This is because a login request should have either
Sso or Local params, but not both at the same time.

The previous implementation called both `setSso` and `setLogin` on the same
object. This no longer works with the use of `oneof`, because calling `setLogin`
after `setSso` would clear the `Sso` params. [2]

[1] gravitational/teleport#10286 (comment)
[2] https://developers.google.com/protocol-buffers/docs/proto3#oneof_features
@ravicious ravicious requested a review from gzdunek March 24, 2022 12:40
@ravicious ravicious merged commit 72534a1 into master Mar 24, 2022
@ravicious ravicious deleted the ravicious/update-proto branch March 24, 2022 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants