Bug 1369671

Summary: User can not login via oc when grantMethod is prompt for openshift-challenging-client oauthclient
Product: OpenShift Container Platform Reporter: weiwei jiang <wjiang>
Component: apiserver-authAssignee: Jordan Liggitt <jliggitt>
Status: CLOSED NOTABUG QA Contact: Chuan Yu <chuyu>
Severity: low Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, jliggitt, mfojtik, ssorce, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-08 12:40:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description weiwei jiang 2016-08-24 06:28:46 UTC
Description of problem:
User login got "error: unsupported protocol scheme" after the grantMethod of openshift-challenging-client oauthcliet is prompt.

Version-Release number of selected component (if applicable):
# openshift version 
openshift v3.3.0.24-dirty
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

How reproducible:
always

Steps to Reproduce:
1. Change the grantMethod of openshift-challenging-client to prompt
2. Try to oc login the master
3.

Actual results:
 oc login <master host>
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y

Authentication required for <master URL> (openshift)
Username: wjiang
Password: 
error: unsupported protocol scheme ""


Expected results:
Should login successfully

Additional info:

Comment 1 Jordan Liggitt 2016-08-24 23:54:03 UTC
CLI login when grant prompt is required is not currently supported, but we should display a nicer message or redirect to a web flow

Comment 2 weiwei jiang 2016-08-25 08:52:00 UTC
(In reply to Jordan Liggitt from comment #1)
> CLI login when grant prompt is required is not currently supported, but we
> should display a nicer message or redirect to a web flow

Agree with you.
And when I try to write the expected result, I am not sure if oc can login succefully when grantMethod is prompt.

Comment 5 Simo Sorce 2018-08-08 10:29:21 UTC
Is this still a valid bug ?
Can we close ?