Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update username in local agent if response comes from proxy. #1750

Merged
merged 2 commits into from
Mar 7, 2018

Conversation

russjones
Copy link
Contributor

@russjones russjones commented Mar 6, 2018

Purpose

Backport part of #1642 and #1705 from 2.5.0 to branch/2.4.

Implementation

  • If using an external identity provider, set the username on the local agent which will be used to name the certificate and key files to disk.
  • Upon first ad-hoc login, update the profile so login does not have to occur again.

Proposed Solution

Fixes #1749

@russjones russjones requested a review from klizhentas March 6, 2018 22:54
russjones and others added 2 commits March 6, 2018 18:03
If user has not logged in yet, and runs

tsh --proxy=example.com ls

Teleport launches ad-hoc login screen, however
because tsh did not write profile, username
and proxy were lost, so any next execution

tsh --proxy=example.com ls

Will launch the same login screen and will
ask for proxy, what is not user-friendly.

This PR fixes it by saving profile after
ad-hoc login attempts.
@russjones russjones merged commit b29a538 into branch/2.4 Mar 7, 2018
@russjones russjones deleted the rjones/fix-login branch March 7, 2018 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants