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

Display IDP name when prompting for username and password #1691

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

joshuatcasey
Copy link
Member

@joshuatcasey joshuatcasey commented Sep 22, 2023

#181927293

Note that this PR only shows the IDP name (if provided to pinniped login oidc via --upstream-identity-provider-name), and does not perform any verification that the user's login flags will result in a acceptable configuration.

pkg/oidcclient/login.go Outdated Show resolved Hide resolved
pkg/oidcclient/login.go Outdated Show resolved Hide resolved
@joshuatcasey joshuatcasey force-pushed the jtc/display-idp-name-when-prompting-for-login-181927293 branch 2 times, most recently from 936645a to 1291874 Compare September 29, 2023 16:10
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #1691 (0a47aa5) into main (a077972) will decrease coverage by 0.01%.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##             main    #1691      +/-   ##
==========================================
- Coverage   79.16%   79.15%   -0.01%     
==========================================
  Files         163      163              
  Lines       15773    15776       +3     
==========================================
+ Hits        12487    12488       +1     
- Misses       2970     2972       +2     
  Partials      316      316              
Files Coverage Δ
pkg/oidcclient/login.go 90.35% <68.75%> (+0.04%) ⬆️

... and 1 file with indirect coverage changes

pkg/oidcclient/login.go Outdated Show resolved Hide resolved
pkg/oidcclient/login.go Outdated Show resolved Hide resolved
@joshuatcasey joshuatcasey force-pushed the jtc/display-idp-name-when-prompting-for-login-181927293 branch from 1291874 to aaedcc8 Compare October 9, 2023 18:48
@cfryanr cfryanr force-pushed the jtc/display-idp-name-when-prompting-for-login-181927293 branch from aaedcc8 to cb600ad Compare October 9, 2023 20:51
@joshuatcasey
Copy link
Member Author

lgtm as of cb600adee54912c4acdefc37dc6889033f77a1c8

@cfryanr cfryanr force-pushed the jtc/display-idp-name-when-prompting-for-login-181927293 branch from cb600ad to 91ac7c6 Compare October 10, 2023 02:33
@cfryanr
Copy link
Member

cfryanr commented Oct 10, 2023

Rebased main and enabled auto merge.

cfryanr and others added 3 commits October 9, 2023 20:17
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
Skip showing the banner when the CLI does not know the IDP name
from the CLI args (which are typically encoded in the kubeconfig).

Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
@cfryanr cfryanr force-pushed the jtc/display-idp-name-when-prompting-for-login-181927293 branch from 91ac7c6 to 0a47aa5 Compare October 10, 2023 03:17
@joshuatcasey
Copy link
Member Author

lgtm as of 0a47aa5

@cfryanr cfryanr merged commit 521dec2 into main Oct 10, 2023
39 checks passed
@cfryanr cfryanr deleted the jtc/display-idp-name-when-prompting-for-login-181927293 branch October 10, 2023 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants